Skip to content

Commit

Permalink
Fix default values
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jan 6, 2025
1 parent 6649763 commit c7da399
Show file tree
Hide file tree
Showing 14 changed files with 110 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ public class DoubleTappedGestureTrigger : RoutedEventTriggerBase<TappedEventArgs
/// <inheritdoc />
protected override RoutedEvent<TappedEventArgs> RoutedEvent
=> Gestures.DoubleTappedEvent;

static DoubleTappedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<DoubleTappedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ public class HoldingGestureTrigger : RoutedEventTriggerBase<HoldingRoutedEventAr
/// <inheritdoc />
protected override RoutedEvent<HoldingRoutedEventArgs> RoutedEvent
=> Gestures.HoldingEvent;

static HoldingGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<HoldingGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PinchEndedGestureTrigger : RoutedEventTriggerBase<PinchEndedEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PinchEndedEventArgs> RoutedEvent
protected override RoutedEvent<PinchEndedEventArgs> RoutedEvent
=> Gestures.PinchEndedEvent;

static PinchEndedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PinchEndedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PinchGestureTrigger : RoutedEventTriggerBase<PinchEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PinchEventArgs> RoutedEvent
protected override RoutedEvent<PinchEventArgs> RoutedEvent
=> Gestures.PinchEvent;

static PinchGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PinchGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PointerTouchPadGestureMagnifyGestureTrigger : RoutedEventTriggerBase<PointerDeltaEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
=> Gestures.PointerTouchPadGestureMagnifyEvent;

static PointerTouchPadGestureMagnifyGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PointerTouchPadGestureMagnifyGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PointerTouchPadGestureRotateGestureTrigger : RoutedEventTriggerBase<PointerDeltaEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
=> Gestures.PointerTouchPadGestureRotateEvent;

static PointerTouchPadGestureRotateGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PointerTouchPadGestureRotateGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PointerTouchPadGestureSwipeGestureTrigger : RoutedEventTriggerBase<PointerDeltaEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
protected override RoutedEvent<PointerDeltaEventArgs> RoutedEvent
=> Gestures.PointerTouchPadGestureSwipeEvent;

static PointerTouchPadGestureSwipeGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PointerTouchPadGestureSwipeGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PullGestureEndedGestureTrigger : RoutedEventTriggerBase<PullGestureEndedEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PullGestureEndedEventArgs> RoutedEvent
protected override RoutedEvent<PullGestureEndedEventArgs> RoutedEvent
=> Gestures.PullGestureEndedEvent;

static PullGestureEndedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PullGestureEndedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class PullGestureGestureTrigger : RoutedEventTriggerBase<PullGestureEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<PullGestureEventArgs> RoutedEvent
protected override RoutedEvent<PullGestureEventArgs> RoutedEvent
=> Gestures.PullGestureEvent;

static PullGestureGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<PullGestureGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class RightTappedGestureTrigger : RoutedEventTriggerBase<TappedEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<TappedEventArgs> RoutedEvent
protected override RoutedEvent<TappedEventArgs> RoutedEvent
=> Gestures.RightTappedEvent;

static RightTappedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<RightTappedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class ScrollGestureEndedGestureTrigger : RoutedEventTriggerBase<ScrollGestureEndedEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<ScrollGestureEndedEventArgs> RoutedEvent
protected override RoutedEvent<ScrollGestureEndedEventArgs> RoutedEvent
=> Gestures.ScrollGestureEndedEvent;

static ScrollGestureEndedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<ScrollGestureEndedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class ScrollGestureGestureTrigger : RoutedEventTriggerBase<ScrollGestureEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<ScrollGestureEventArgs> RoutedEvent
protected override RoutedEvent<ScrollGestureEventArgs> RoutedEvent
=> Gestures.ScrollGestureEvent;

static ScrollGestureGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<ScrollGestureGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class ScrollGestureInertiaStartingGestureTrigger : RoutedEventTriggerBase<ScrollGestureInertiaStartingEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<ScrollGestureInertiaStartingEventArgs> RoutedEvent
protected override RoutedEvent<ScrollGestureInertiaStartingEventArgs> RoutedEvent
=> Gestures.ScrollGestureInertiaStartingEvent;

static ScrollGestureInertiaStartingGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<ScrollGestureInertiaStartingGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
public class TappedGestureTrigger : RoutedEventTriggerBase<TappedEventArgs>
{
/// <inheritdoc />
protected override RoutedEvent<TappedEventArgs> RoutedEvent
protected override RoutedEvent<TappedEventArgs> RoutedEvent
=> Gestures.TappedEvent;

static TappedGestureTrigger()
{
EventRoutingStrategyProperty.OverrideMetadata<TappedGestureTrigger>(
new StyledPropertyMetadata<RoutingStrategies>(
defaultValue: RoutingStrategies.Bubble));
}
}

0 comments on commit c7da399

Please sign in to comment.