using Avalonia; namespace AtomUI.Controls; internal class SelectAddOnDecoratedBox : AddOnDecoratedBox { public static readonly StyledProperty ModeProperty = Select.ModeProperty.AddOwner(); internal static readonly DirectProperty IsSelectionEmptyProperty = AvaloniaProperty.RegisterDirect( nameof(IsSelectionEmpty), o => o.IsSelectionEmpty, (o, v) => o.IsSelectionEmpty = v); public static readonly StyledProperty IsDropDownOpenProperty = AvaloniaProperty.Register(nameof(IsDropDownOpen)); public SelectMode Mode { get => GetValue(ModeProperty); set => SetValue(ModeProperty, value); } private bool _isSelectionEmpty = true; internal bool IsSelectionEmpty { get => _isSelectionEmpty; set => SetAndRaise(IsSelectionEmptyProperty, ref _isSelectionEmpty, value); } public bool IsDropDownOpen { get => GetValue(IsDropDownOpenProperty); set => SetValue(IsDropDownOpenProperty, value); } }