34 lines
1013 B
C#
34 lines
1013 B
C#
using Avalonia;
|
|
|
|
namespace Toolkit.UI.Controls.Avalonia;
|
|
|
|
public class SettingsExpander : FluentAvalonia.UI.Controls.SettingsExpander
|
|
{
|
|
protected override Type StyleKeyOverride =>
|
|
typeof(SettingsExpander);
|
|
|
|
public new static readonly StyledProperty<object> DescriptionProperty =
|
|
AvaloniaProperty.Register<SettingsExpander, object>(nameof(Description));
|
|
|
|
public new object Description
|
|
{
|
|
get => GetValue(DescriptionProperty);
|
|
set => SetValue(DescriptionProperty, value);
|
|
}
|
|
}
|
|
|
|
public class SettingsExpanderItem : FluentAvalonia.UI.Controls.SettingsExpanderItem
|
|
{
|
|
protected override Type StyleKeyOverride =>
|
|
typeof(SettingsExpanderItem);
|
|
|
|
public new static readonly StyledProperty<object> DescriptionProperty =
|
|
AvaloniaProperty.Register<SettingsExpanderItem, object>(nameof(Description));
|
|
|
|
public new object Description
|
|
{
|
|
get => GetValue(DescriptionProperty);
|
|
set => SetValue(DescriptionProperty, value);
|
|
}
|
|
}
|