Toolkit.UI.Controls.Avalonia
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user