feat: add Icon style.

This commit is contained in:
Zhang Dian
2023-07-27 00:35:05 +08:00
parent 240c5a0490
commit f429d8219c
6 changed files with 54 additions and 97 deletions

View File

@@ -32,6 +32,14 @@ public class DualBadge : HeaderedContentControl
set => SetValue(IconTemplateProperty, value);
}
public static readonly StyledProperty<IBrush?> IconForegroundProperty =
AvaloniaProperty.Register<DualBadge, IBrush?>(nameof(IconForeground));
public IBrush? IconForeground
{
get => GetValue(IconForegroundProperty);
set => SetValue(IconForegroundProperty, value);
}
public static readonly StyledProperty<IBrush?> HeaderForegroundProperty =
AvaloniaProperty.Register<DualBadge, IBrush?>(nameof(HeaderForeground));