Browse Source
Merge pull request #12584 from Actipro/fix-togglesplitbutton-ischecked
Updated ToggleSplitButton.IsChecked to bind TwoWay by default, same as ToggleButton.
release/11.0.4
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Controls/SplitButton/ToggleSplitButton.cs
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
using Avalonia.Controls.Metadata; |
|
|
|
using Avalonia.Controls.Primitives; |
|
|
|
using Avalonia.Data; |
|
|
|
using Avalonia.Interactivity; |
|
|
|
using Avalonia.Styling; |
|
|
|
|
|
|
|
@ -36,8 +37,7 @@ namespace Avalonia.Controls |
|
|
|
/// Defines the <see cref="IsChecked"/> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<bool> IsCheckedProperty = |
|
|
|
AvaloniaProperty.Register<ToggleSplitButton, bool>( |
|
|
|
nameof(IsChecked)); |
|
|
|
AvaloniaProperty.Register<ToggleSplitButton, bool>(nameof(IsChecked), false, defaultBindingMode: BindingMode.TwoWay); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="ToggleSplitButton"/> class.
|
|
|
|
|