Skip to content

Commit

Permalink
Make routed events have proper generics
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Jan 4, 2025
1 parent 607117b commit eec31f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DialogHost.Avalonia/DialogHost.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public class DialogHost : ContentControl {
/// <summary>
/// Identifies the <see cref="DialogOpened"/> routed event.
/// </summary>
public static readonly RoutedEvent DialogOpenedEvent =
public static readonly RoutedEvent<DialogOpenedEventArgs> DialogOpenedEvent =
RoutedEvent.Register<DialogHost, DialogOpenedEventArgs>(nameof(DialogOpened), RoutingStrategies.Bubble);

/// <summary>
/// Identifies the <see cref="DialogClosing"/> routed event.
/// </summary>
public static readonly RoutedEvent DialogClosingEvent =
public static readonly RoutedEvent<DialogClosingEventArgs> DialogClosingEvent =
RoutedEvent.Register<DialogHost, DialogClosingEventArgs>(nameof(DialogClosing), RoutingStrategies.Bubble);

/// <summary>
Expand Down

0 comments on commit eec31f0

Please sign in to comment.