Browse Source

Change SizeChangedEvent routing strategy to direct

This matches WPF and making it bubble was a mistake.
pull/9307/head
robloo 3 years ago
parent
commit
66df8a51fe
  1. 2
      src/Avalonia.Controls/Control.cs

2
src/Avalonia.Controls/Control.cs

@ -89,7 +89,7 @@ namespace Avalonia.Controls
/// </summary>
public static readonly RoutedEvent<SizeChangedEventArgs> SizeChangedEvent =
RoutedEvent.Register<Control, SizeChangedEventArgs>(
nameof(SizeChanged), RoutingStrategies.Bubble);
nameof(SizeChanged), RoutingStrategies.Direct);
/// <summary>
/// Defines the <see cref="FlowDirection"/> property.

Loading…
Cancel
Save