-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9979 from robloo/expander-isexpanded-styled-prop
Switch Expander.IsExpanded to a StyledProperty
- Loading branch information
Showing
3 changed files
with
113 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
namespace Avalonia.Interactivity | ||
{ | ||
/// <summary> | ||
/// Provides state information and data specific to a cancelable routed event. | ||
/// </summary> | ||
public class CancelRoutedEventArgs : RoutedEventArgs | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CancelRoutedEventArgs"/> class. | ||
/// </summary> | ||
public CancelRoutedEventArgs() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CancelRoutedEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="routedEvent">The routed event associated with these event args.</param> | ||
public CancelRoutedEventArgs(RoutedEvent? routedEvent) | ||
: base(routedEvent) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CancelRoutedEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="routedEvent">The routed event associated with these event args.</param> | ||
/// <param name="source">The source object that raised the routed event.</param> | ||
public CancelRoutedEventArgs(RoutedEvent? routedEvent, object? source) | ||
: base(routedEvent, source) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the routed event should be canceled. | ||
/// </summary> | ||
public bool Cancel { get; set; } = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters