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
60 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)
308
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 (9)
iOS\DragAndDropDelegate.cs (1)
131
foreach (
var
gesture in gestures)
iOS\EventTracker.cs (8)
33
readonly Dictionary<
IGestureRecognizer
, NativeGestureRecognizer> _gestureRecognizers = new Dictionary<
IGestureRecognizer
, NativeGestureRecognizer>();
57
ObservableCollection<
IGestureRecognizer
> ElementGestureRecognizers
62
?.CompositeGestureRecognizers as ObservableCollection<
IGestureRecognizer
>);
238
protected virtual NativeGestureRecognizer GetNativeRecognizer(
IGestureRecognizer
recognizer)
598
IGestureRecognizer
recognizer = ElementGestureRecognizers[i];
651
IGestureRecognizer
gestureRecognizer = toRemove[i];
699
var oldRecognizers = (ObservableCollection<
IGestureRecognizer
>)oldView.GestureRecognizers;