4
4
5
5
partial class MapboxView
6
6
{
7
+ public event EventHandler < Gestures . RotatingEventArgs > Rotating ;
8
+ public static readonly BindableProperty RotatingCommandProperty = BindableProperty . Create (
9
+ nameof ( RotatingCommand ) ,
10
+ typeof ( ICommand ) ,
11
+ typeof ( MapboxView )
12
+ ) ;
13
+ public ICommand RotatingCommand
14
+ {
15
+ get => ( ICommand ) GetValue ( RotatingCommandProperty ) ;
16
+ set => SetValue ( RotatingCommandProperty , value ) ;
17
+ }
18
+ internal void InvokeRotating ( Gestures . RotatingEventArgs args )
19
+ {
20
+ Rotating ? . Invoke ( this , args ) ;
21
+
22
+ if ( RotatingCommand ? . CanExecute ( args ) == true )
23
+ {
24
+ RotatingCommand . Execute ( args ) ;
25
+ }
26
+ }
27
+
28
+ public event EventHandler < Gestures . RotatingBeganEventArgs > RotatingBegan ;
29
+ public static readonly BindableProperty RotatingBeganCommandProperty = BindableProperty . Create (
30
+ nameof ( RotatingBeganCommand ) ,
31
+ typeof ( ICommand ) ,
32
+ typeof ( MapboxView )
33
+ ) ;
34
+ public ICommand RotatingBeganCommand
35
+ {
36
+ get => ( ICommand ) GetValue ( RotatingBeganCommandProperty ) ;
37
+ set => SetValue ( RotatingBeganCommandProperty , value ) ;
38
+ }
39
+ internal void InvokeRotatingBegan ( Gestures . RotatingBeganEventArgs args )
40
+ {
41
+ RotatingBegan ? . Invoke ( this , args ) ;
42
+
43
+ if ( RotatingBeganCommand ? . CanExecute ( args ) == true )
44
+ {
45
+ RotatingBeganCommand . Execute ( args ) ;
46
+ }
47
+ }
48
+
49
+ public event EventHandler < Gestures . RotatingEndedEventArgs > RotatingEnded ;
50
+ public static readonly BindableProperty RotatingEndedCommandProperty = BindableProperty . Create (
51
+ nameof ( RotatingEndedCommand ) ,
52
+ typeof ( ICommand ) ,
53
+ typeof ( MapboxView )
54
+ ) ;
55
+ public ICommand RotatingEndedCommand
56
+ {
57
+ get => ( ICommand ) GetValue ( RotatingEndedCommandProperty ) ;
58
+ set => SetValue ( RotatingEndedCommandProperty , value ) ;
59
+ }
60
+ internal void InvokeRotatingEnded ( Gestures . RotatingEndedEventArgs args )
61
+ {
62
+ RotatingEnded ? . Invoke ( this , args ) ;
63
+
64
+ if ( RotatingEndedCommand ? . CanExecute ( args ) == true )
65
+ {
66
+ RotatingEndedCommand . Execute ( args ) ;
67
+ }
68
+ }
7
69
public event EventHandler < Viewport . ViewportStatusChangedEventArgs > ViewportStatusChanged ;
8
70
public static readonly BindableProperty ViewportStatusChangedCommandProperty = BindableProperty . Create (
9
71
nameof ( ViewportStatusChangedCommand ) ,
@@ -19,9 +81,9 @@ internal void InvokeViewportStatusChanged(Viewport.ViewportStatusChangedEventArg
19
81
{
20
82
ViewportStatusChanged ? . Invoke ( this , args ) ;
21
83
22
- if ( CameraChangedCommand ? . CanExecute ( args ) == true )
84
+ if ( ViewportStatusChangedCommand ? . CanExecute ( args ) == true )
23
85
{
24
- CameraChangedCommand . Execute ( args ) ;
86
+ ViewportStatusChangedCommand . Execute ( args ) ;
25
87
}
26
88
}
27
89
public event EventHandler < CameraChangedEventArgs > CameraChanged ;
0 commit comments