Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

PanGestures

$
0
0

Hi,

I'm working on a project and want to add Pan gestures recognizer.
When I try to run the app, I get the following XAML parse error:

An exception of type 'Xamarin.Forms.Xaml.XamlParseException' occurred in Xamarin.Forms.Xaml.dll but was not handled in user code

Additional information: Position 25:10. Type PanGestureRecognizer not found in xmlns http://xamarin.com/schemas/2014/forms

I already added the following line to the Content Page:
xmlns:local="clr-namespace:PanGesture"

And here is the line where I'm using Pan gestures:

<Label Grid.Row="0" Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Text="." BackgroundColor="Transparent" Font="1">
      <Label.GestureRecognizers>
        <PanGestureRecognizer PanUpdated="OnPanUpdated" />
      </Label.GestureRecognizers>
    </Label>

Viewing all articles
Browse latest Browse all 75885

Trending Articles