File tree Expand file tree Collapse file tree 6 files changed +18
-33
lines changed
WorkingWithGestures/DragAndDropGesture/DragAndDropGesture Expand file tree Collapse file tree 6 files changed +18
-33
lines changed Original file line number Diff line number Diff line change 3030 WidthRequest =" 200"
3131 HorizontalOptions =" Center" >
3232 <Rectangle .GestureRecognizers>
33- <DragGestureRecognizer CanDrag =" True"
34- DragStartingCommand =" {Binding DragStartingCommand}"
33+ <DragGestureRecognizer DragStartingCommand =" {Binding DragStartingCommand}"
3534 DragStartingCommandParameter =" {StaticResource bigSquare}" />
3635 </Rectangle .GestureRecognizers>
3736 </Rectangle >
4241 WidthRequest =" 150"
4342 HorizontalOptions =" Center" >
4443 <Rectangle .GestureRecognizers>
45- <DragGestureRecognizer CanDrag =" True"
46- DragStartingCommand =" {Binding DragStartingCommand}"
44+ <DragGestureRecognizer DragStartingCommand =" {Binding DragStartingCommand}"
4745 DragStartingCommandParameter =" {StaticResource smallSquare}" />
4846 </Rectangle .GestureRecognizers>
4947 </Rectangle >
5250 BackgroundColor =" Silver"
5351 HeightRequest =" 200" >
5452 <Frame .GestureRecognizers>
55- <DropGestureRecognizer AllowDrop =" True"
56- DropCommand =" {Binding DropCommand}"
53+ <DropGestureRecognizer DropCommand =" {Binding DropCommand}"
5754 DropCommandParameter =" {StaticResource bigSquare}" />
5855 </Frame .GestureRecognizers>
5956 </Frame >
Original file line number Diff line number Diff line change 1212 WidthRequest =" 200"
1313 HorizontalOptions =" Center" >
1414 <Rectangle .GestureRecognizers>
15- <DragGestureRecognizer CanDrag =" True"
16- DragStarting =" OnDragStarting" />
15+ <DragGestureRecognizer DragStarting =" OnDragStarting" />
1716 </Rectangle .GestureRecognizers>
1817 </Rectangle >
1918 <Rectangle Stroke =" DarkBlue"
2322 WidthRequest =" 150"
2423 HorizontalOptions =" Center" >
2524 <Rectangle .GestureRecognizers>
26- <DragGestureRecognizer CanDrag =" True"
27- DragStarting =" OnDragStarting" />
25+ <DragGestureRecognizer DragStarting =" OnDragStarting" />
2826 </Rectangle .GestureRecognizers>
2927 </Rectangle >
3028 <Frame CornerRadius =" 0"
3129 HasShadow =" False"
3230 BackgroundColor =" Silver"
3331 HeightRequest =" 200" >
3432 <Frame .GestureRecognizers>
35- <DropGestureRecognizer AllowDrop =" True"
36- Drop =" OnDrop" />
33+ <DropGestureRecognizer Drop =" OnDrop" />
3734 </Frame .GestureRecognizers>
3835 </Frame >
3936 </StackLayout >
Original file line number Diff line number Diff line change 1212 <Image Source =" monkeyface.png"
1313 HorizontalOptions =" Center" >
1414 <Image .GestureRecognizers>
15- <DragGestureRecognizer CanDrag =" True"
16- DragStartingCommand =" {Binding DragCommand}"
15+ <DragGestureRecognizer DragStartingCommand =" {Binding DragCommand}"
1716 DragStartingCommandParameter =" Monkey" />
1817 </Image .GestureRecognizers>
1918 </Image >
2221 RenderTransform =" 0.5 0 0 0.5 0 0"
2322 HorizontalOptions =" Center" >
2423 <Path .GestureRecognizers>
25- <DragGestureRecognizer CanDrag =" True"
26- DragStartingCommand =" {Binding DragCommand}"
24+ <DragGestureRecognizer DragStartingCommand =" {Binding DragCommand}"
2725 DragStartingCommandParameter =" Cat" />
2826 </Path .GestureRecognizers>
2927 <Path .Data>
5149 BackgroundColor =" Silver"
5250 HeightRequest =" 200" >
5351 <Frame .GestureRecognizers>
54- <DropGestureRecognizer AllowDrop =" True"
55- DropCommand =" {Binding DropCommand}" />
52+ <DropGestureRecognizer DropCommand =" {Binding DropCommand}" />
5653 </Frame .GestureRecognizers>
5754 </Frame >
5855 </StackLayout >
Original file line number Diff line number Diff line change 88 <Image Source =" monkeyface.png"
99 HorizontalOptions =" Center" >
1010 <Image .GestureRecognizers>
11- <DragGestureRecognizer CanDrag =" True"
12- DragStarting =" OnMonkeyDragStarting" />
11+ <DragGestureRecognizer DragStarting =" OnMonkeyDragStarting" />
1312 </Image .GestureRecognizers>
1413 </Image >
1514 <Path Stroke =" Black"
1615 StrokeThickness =" 4"
1716 RenderTransform =" 0.5 0 0 0.5 0 0"
1817 HorizontalOptions =" Center" >
1918 <Path .GestureRecognizers>
20- <DragGestureRecognizer CanDrag =" True"
21- DragStarting =" OnCatDragStarting" />
19+ <DragGestureRecognizer DragStarting =" OnCatDragStarting" />
2220 </Path .GestureRecognizers>
2321 <Path .Data>
2422 <PathGeometry Figures =" M 160 140 L 150 50 220 103
4543 BackgroundColor =" Silver"
4644 HeightRequest =" 200" >
4745 <Frame .GestureRecognizers>
48- <DropGestureRecognizer AllowDrop =" True"
49- Drop =" OnDrop" />
46+ <DropGestureRecognizer Drop =" OnDrop" />
5047 </Frame .GestureRecognizers>
5148 </Frame >
5249 </StackLayout >
Original file line number Diff line number Diff line change 88 <Image Source =" monkeyface.png"
99 HorizontalOptions =" Center" >
1010 <Image .GestureRecognizers>
11- <DragGestureRecognizer CanDrag = " True " />
11+ <DragGestureRecognizer />
1212 </Image .GestureRecognizers>
1313 </Image >
1414 <Grid ColumnDefinitions =" 0.5*, 0.5*"
1919 HeightRequest =" 300"
2020 WidthRequest =" 250" >
2121 <Image .GestureRecognizers>
22- <DropGestureRecognizer AllowDrop =" True"
23- Drop =" OnCorrectDrop" />
22+ <DropGestureRecognizer Drop =" OnCorrectDrop" />
2423 </Image .GestureRecognizers>
2524 </Image >
2625 <Label Grid.Row=" 1"
3130 HeightRequest =" 300"
3231 WidthRequest =" 250" >
3332 <Image .GestureRecognizers>
34- <DropGestureRecognizer AllowDrop =" True"
35- DragOver =" OnIncorrectDragOver" />
33+ <DropGestureRecognizer DragOver =" OnIncorrectDragOver" />
3634 </Image .GestureRecognizers>
3735 </Image >
3836 <Label Grid.Row=" 1"
Original file line number Diff line number Diff line change 1111 <Label Text =" 3"
1212 HorizontalOptions =" Center" >
1313 <Label .GestureRecognizers>
14- <DragGestureRecognizer CanDrag = " True " />
14+ <DragGestureRecognizer />
1515 </Label .GestureRecognizers>
1616 </Label >
1717 <Label Grid.Column=" 1"
1818 Text =" 4"
1919 HorizontalOptions =" Center" >
2020 <Label .GestureRecognizers>
21- <DragGestureRecognizer CanDrag = " True " />
21+ <DragGestureRecognizer />
2222 </Label .GestureRecognizers>
2323 </Label >
2424 </Grid >
2525 <Entry Margin =" 0,20,0,0"
2626 Placeholder =" Drag your answer here" >
2727 <Entry .GestureRecognizers>
28- <DropGestureRecognizer AllowDrop =" True"
29- DragOver =" OnDropGestureRecognizerDragOver"
28+ <DropGestureRecognizer DragOver =" OnDropGestureRecognizerDragOver"
3029 Drop =" OnDropGestureRecognizerDrop" />
3130 </Entry .GestureRecognizers>
3231 </Entry >
You can’t perform that action at this time.
0 commit comments