using Avalonia; 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 IconProperty = AvaloniaProperty.Register(nameof(Icon)); public static readonly StyledProperty IconTemplateProperty = AvaloniaProperty.Register(nameof(IconTemplate)); public static readonly StyledProperty IsExpandableProperty = AvaloniaProperty.Register(nameof(IsExpandable)); public object Action { get => GetValue(ActionProperty); set => SetValue(ActionProperty, value); } public IDataTemplate ActionTemplate { get => GetValue(ActionTemplateProperty); set => SetValue(ActionTemplateProperty, value); } public object Icon { get => GetValue(IconProperty); set => SetValue(IconProperty, value); } public IDataTemplate IconTemplate { get => GetValue(IconTemplateProperty); set => SetValue(IconTemplateProperty, value); } public bool IsExpandable { get => GetValue(IsExpandableProperty); set => SetValue(IsExpandableProperty, value); } protected override Type StyleKeyOverride => typeof(SettingsExpander); }