using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Primitives; using Avalonia.Controls.Templates; namespace Toolkit.UI.Controls.Avalonia; public class SettingsExpander : FluentAvalonia.UI.Controls.SettingsExpander { public static readonly StyledProperty ActionProperty = AvaloniaProperty.Register(nameof(Action)); public static readonly StyledProperty ActionTemplateProperty = AvaloniaProperty.Register(nameof(ActionTemplate)); public static readonly StyledProperty IsToggleableProperty = AvaloniaProperty.Register(nameof(IsToggleable)); public object Action { get => GetValue(ActionProperty); set => SetValue(ActionProperty, value); } public IDataTemplate ActionTemplate { get => GetValue(ActionTemplateProperty); set => SetValue(ActionTemplateProperty, value); } public bool IsToggleable { get => GetValue(IsToggleableProperty); set => SetValue(IsToggleableProperty, value); } protected override Type StyleKeyOverride => typeof(SettingsExpander); }