2 implementations of IGestureRecognizer
Microsoft.Maui.Controls (2)
ChildGestureRecognizer.cs (1)
8
public sealed class ChildGestureRecognizer :
IGestureRecognizer
GestureRecognizer.cs (1)
4
public class GestureRecognizer : Element,
IGestureRecognizer
73 references to IGestureRecognizer
Microsoft.Maui.Controls (51)
ChildGestureRecognizer.cs (2)
10
private
IGestureRecognizer
_gestureRecognizer;
12
public
IGestureRecognizer
GestureRecognizer
EnumerableExtensions.cs (8)
17
foreach (
var
item in element.GestureRecognizers)
38
foreach (
var
item in element.GestureRecognizers)
49
public static IEnumerable<T> GetGesturesFor<T>(this IEnumerable<
IGestureRecognizer
>? gestures, Func<T, bool>? predicate = null) where T : GestureRecognizer
56
foreach (
IGestureRecognizer
item in new List<
IGestureRecognizer
>(gestures))
65
internal static bool HasAnyGesturesFor<T>(this IEnumerable<
IGestureRecognizer
>? gestures, Func<T, bool>? predicate = null) where T : GestureRecognizer
68
internal static T? FirstGestureOrDefault<T>(this IEnumerable<
IGestureRecognizer
>? gestures, Func<T, bool>? predicate = null) where T : GestureRecognizer
75
foreach (
IGestureRecognizer
item in gestures)
GestureElement.cs (6)
25
ValidateGesture(item as
IGestureRecognizer
);
61
public IList<
IGestureRecognizer
> GestureRecognizers
66
internal virtual void ValidateGesture(
IGestureRecognizer
gesture) { }
68
class GestureRecognizerCollection : ObservableCollection<
IGestureRecognizer
>
72
List<
IGestureRecognizer
> removed = new List<
IGestureRecognizer
>(this);
IGestureController.cs (1)
11
IList<
IGestureRecognizer
> CompositeGestureRecognizers { get; }
IGestureRecognizers.cs (1)
8
IList<
IGestureRecognizer
> GestureRecognizers { get; }
Label\Label.cs (1)
306
foreach (
var
spanRecognizer in GestureController.CompositeGestureRecognizers.ToList())
Platform\GestureManager\GesturePlatformManager.iOS.cs (15)
23
readonly Dictionary<
IGestureRecognizer
, List<UIGestureRecognizer?>> _gestureRecognizers = new Dictionary<
IGestureRecognizer
, List<UIGestureRecognizer?>>();
67
ObservableCollection<
IGestureRecognizer
>? ElementGestureRecognizers =>
68
(_handler.VirtualView as Element)?.GetCompositeGestureRecognizers() as ObservableCollection<
IGestureRecognizer
>;
143
var
recognizer = weakRecognizer.Target as
IGestureRecognizer
;
230
protected virtual List<UIGestureRecognizer?>? GetPlatformRecognizer(
IGestureRecognizer
recognizer)
477
if (!TryGetTapGestureRecognizer(weakRecognizer.Target as
IGestureRecognizer
, out TapGestureRecognizer? tapGesture))
552
bool TryGetTapGestureRecognizer(
IGestureRecognizer
? recognizer, out TapGestureRecognizer? tapGestureRecognizer)
609
IGestureRecognizer
recognizer = ElementGestureRecognizers[i];
682
var toRemove = new List<
IGestureRecognizer
>();
684
foreach (
var
key in _gestureRecognizers.Keys)
692
IGestureRecognizer
gestureRecognizer = toRemove[i];
809
var oldRecognizers = (ObservableCollection<
IGestureRecognizer
>)oldView.GestureRecognizers;
825
ButtonsMask AddFakeRightClickForMacCatalyst(
IGestureRecognizer
recognizer)
Platform\iOS\DragAndDropDelegate.cs (1)
144
foreach (
var
gesture in gestures)
Platform\SemanticExtensions.cs (1)
10
foreach (
var
gesture in virtualView.GestureRecognizers)
Span.cs (1)
182
internal override void ValidateGesture(
IGestureRecognizer
gesture)
View\View.cs (13)
86
readonly ObservableCollection<
IGestureRecognizer
> _gestureRecognizers = new ObservableCollection<
IGestureRecognizer
>();
103
var
gestureRecognizer = item as
IGestureRecognizer
;
117
GestureController.CompositeGestureRecognizers.Remove(item as
IGestureRecognizer
);
135
foreach (
IGestureRecognizer
gestureRecognizer in _gestureRecognizers)
143
HashSet<
IGestureRecognizer
> compositeGestureRecognizers = new(GestureController.CompositeGestureRecognizers);
145
foreach (
IGestureRecognizer
gestureRecognizer in compositeGestureRecognizers)
177
public IList<
IGestureRecognizer
> GestureRecognizers
182
ObservableCollection<
IGestureRecognizer
> _compositeGestureRecognizers;
183
IList<
IGestureRecognizer
> IGestureController.CompositeGestureRecognizers
189
_compositeGestureRecognizers = new ObservableCollection<
IGestureRecognizer
>();
271
bool ValidateGesture(
IGestureRecognizer
gesture)
ViewExtensions.cs (1)
359
internal static IList<
IGestureRecognizer
>? GetCompositeGestureRecognizers(this Element element)
Microsoft.Maui.Controls.Compatibility (22)
Tizen\Gesture\GestureDetector.cs (9)
7
Dictionary<
IGestureRecognizer
, GestureHandler> _handlers = new Dictionary<
IGestureRecognizer
, GestureHandler>();
31
public void AddGestures(IEnumerable<
IGestureRecognizer
> gestures)
33
foreach (
var
gesture in gestures)
39
public void AddGesture(
IGestureRecognizer
gesture)
51
public void RemoveGestures(IEnumerable<
IGestureRecognizer
> gestures)
53
foreach (
var
gesture in gestures)
59
public void RemoveGesture(
IGestureRecognizer
gesture)
95
GestureHandler CreateHandler(
IGestureRecognizer
recognizer)
Tizen\Gesture\GestureHandler.cs (3)
10
public
IGestureRecognizer
Recognizer { get; private set; }
34
protected abstract NGestureDetector CreateNativeDetector(
IGestureRecognizer
recognizer);
36
protected GestureHandler(
IGestureRecognizer
recognizer)
Tizen\Gesture\PanGestureHandler.cs (2)
14
public PanGestureHandler(
IGestureRecognizer
recognizer) : base(recognizer)
22
protected override NGestureDetector CreateNativeDetector(
IGestureRecognizer
recognizer)
Tizen\Gesture\TapGestureHandler.cs (2)
9
public TapGestureHandler(
IGestureRecognizer
recognizer) : base(recognizer)
17
protected override NGestureDetector CreateNativeDetector(
IGestureRecognizer
recognizer)
Tizen\Renderers\ViewRenderer.cs (6)
19
ObservableCollection<
IGestureRecognizer
> GestureRecognizers => Element.GestureRecognizers as ObservableCollection<
IGestureRecognizer
>;
74
GestureDetector.AddGestures(e.NewItems.OfType<
IGestureRecognizer
>());
78
GestureDetector.RemoveGestures(e.OldItems.OfType<
IGestureRecognizer
>());
79
GestureDetector.AddGestures(e.NewItems.OfType<
IGestureRecognizer
>());
83
GestureDetector.RemoveGestures(e.OldItems.OfType<
IGestureRecognizer
>());