diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/DoubleTappedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/DoubleTappedGestureTrigger.cs index 0a978cf7..1a5d0802 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/DoubleTappedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/DoubleTappedGestureTrigger.cs @@ -11,4 +11,11 @@ public class DoubleTappedGestureTrigger : RoutedEventTriggerBase protected override RoutedEvent RoutedEvent => Gestures.DoubleTappedEvent; + + static DoubleTappedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/HoldingGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/HoldingGestureTrigger.cs index 2a960f01..6d345a62 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/HoldingGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/HoldingGestureTrigger.cs @@ -11,4 +11,11 @@ public class HoldingGestureTrigger : RoutedEventTriggerBase protected override RoutedEvent RoutedEvent => Gestures.HoldingEvent; + + static HoldingGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchEndedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchEndedGestureTrigger.cs index 5d62beea..aabd8cb9 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchEndedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchEndedGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PinchEndedGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PinchEndedEvent; + + static PinchEndedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchGestureTrigger.cs index 6b47d4fa..825efabe 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PinchGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PinchGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PinchEvent; + + static PinchGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureMagnifyGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureMagnifyGestureTrigger.cs index 7360ffe9..bd7447c3 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureMagnifyGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureMagnifyGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PointerTouchPadGestureMagnifyGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PointerTouchPadGestureMagnifyEvent; + + static PointerTouchPadGestureMagnifyGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureRotateGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureRotateGestureTrigger.cs index f74659f1..60c2b12b 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureRotateGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureRotateGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PointerTouchPadGestureRotateGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PointerTouchPadGestureRotateEvent; + + static PointerTouchPadGestureRotateGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureSwipeGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureSwipeGestureTrigger.cs index c26e46c0..294cf9fa 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureSwipeGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PointerTouchPadGestureSwipeGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PointerTouchPadGestureSwipeGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PointerTouchPadGestureSwipeEvent; + + static PointerTouchPadGestureSwipeGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureEndedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureEndedGestureTrigger.cs index 3f8539ef..7ae9686a 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureEndedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureEndedGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PullGestureEndedGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PullGestureEndedEvent; + + static PullGestureEndedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureGestureTrigger.cs index e076fe6c..819fda2d 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/PullGestureGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class PullGestureGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.PullGestureEvent; + + static PullGestureGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/RightTappedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/RightTappedGestureTrigger.cs index a492dd64..97c1aa9e 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/RightTappedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/RightTappedGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class RightTappedGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.RightTappedEvent; + + static RightTappedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureEndedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureEndedGestureTrigger.cs index 1537cd41..1703e45c 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureEndedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureEndedGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class ScrollGestureEndedGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.ScrollGestureEndedEvent; + + static ScrollGestureEndedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureGestureTrigger.cs index 0c3fe608..959344c8 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class ScrollGestureGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.ScrollGestureEvent; + + static ScrollGestureGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureInertiaStartingGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureInertiaStartingGestureTrigger.cs index 5d1bfe0f..c35f83b7 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureInertiaStartingGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/ScrollGestureInertiaStartingGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class ScrollGestureInertiaStartingGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.ScrollGestureInertiaStartingEvent; + + static ScrollGestureInertiaStartingGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } } diff --git a/src/Avalonia.Xaml.Interactions.Custom/Gestures/TappedGestureTrigger.cs b/src/Avalonia.Xaml.Interactions.Custom/Gestures/TappedGestureTrigger.cs index 1380fef7..a7d7b018 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Gestures/TappedGestureTrigger.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Gestures/TappedGestureTrigger.cs @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom; public class TappedGestureTrigger : RoutedEventTriggerBase { /// - protected override RoutedEvent RoutedEvent + protected override RoutedEvent RoutedEvent => Gestures.TappedEvent; + + static TappedGestureTrigger() + { + EventRoutingStrategyProperty.OverrideMetadata( + new StyledPropertyMetadata( + defaultValue: RoutingStrategies.Bubble)); + } }