From 23a66f4ceb657c001601cae672b87021b568045a Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 24 Jan 2024 15:38:38 -0500 Subject: [PATCH] Fix BetterComboBox property accessibility --- StabilityMatrix.Avalonia/Controls/BetterComboBox.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/StabilityMatrix.Avalonia/Controls/BetterComboBox.cs b/StabilityMatrix.Avalonia/Controls/BetterComboBox.cs index 7209879c..c4cb6d56 100644 --- a/StabilityMatrix.Avalonia/Controls/BetterComboBox.cs +++ b/StabilityMatrix.Avalonia/Controls/BetterComboBox.cs @@ -1,5 +1,4 @@ -using System; -using Avalonia; +using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Primitives; using Avalonia.Controls.Templates; @@ -8,8 +7,6 @@ namespace StabilityMatrix.Avalonia.Controls; public class BetterComboBox : ComboBox { - // protected override Type StyleKeyOverride { get; } = typeof(CheckBox); - public static readonly DirectProperty SelectionBoxItemTemplateProperty = AvaloniaProperty.RegisterDirect( nameof(SelectionBoxItemTemplate), @@ -22,7 +19,7 @@ public class BetterComboBox : ComboBox public IDataTemplate? SelectionBoxItemTemplate { get => _selectionBoxItemTemplate; - private set => SetAndRaise(SelectionBoxItemTemplateProperty, ref _selectionBoxItemTemplate, value); + set => SetAndRaise(SelectionBoxItemTemplateProperty, ref _selectionBoxItemTemplate, value); } ///