29 lines
886 B
C#
29 lines
886 B
C#
using Avalonia;
|
|
using Avalonia.Controls.Templates;
|
|
|
|
namespace Toolkit.UI.Controls.Avalonia;
|
|
|
|
public class SettingsExpanderItem :
|
|
FluentAvalonia.UI.Controls.SettingsExpanderItem
|
|
{
|
|
public static readonly StyledProperty<object> ActionProperty =
|
|
AvaloniaProperty.Register<SettingsExpanderItem, object>(nameof(Action));
|
|
|
|
public static readonly StyledProperty<IDataTemplate> ActionTemplateProperty =
|
|
AvaloniaProperty.Register<SettingsExpanderItem, IDataTemplate>(nameof(ActionTemplate));
|
|
|
|
public object Action
|
|
{
|
|
get => GetValue(ActionProperty);
|
|
set => SetValue(ActionProperty, value);
|
|
}
|
|
|
|
public IDataTemplate ActionTemplate
|
|
{
|
|
get => GetValue(ActionTemplateProperty);
|
|
set => SetValue(ActionTemplateProperty, value);
|
|
}
|
|
|
|
protected override Type StyleKeyOverride =>
|
|
typeof(SettingsExpanderItem);
|
|
} |