diff --git a/src/IconPacks.Avalonia.BoxIcons/BoxIcons.xaml b/src/IconPacks.Avalonia.BoxIcons/BoxIcons.xaml index fcb7289..48cd6f0 100644 --- a/src/IconPacks.Avalonia.BoxIcons/BoxIcons.xaml +++ b/src/IconPacks.Avalonia.BoxIcons/BoxIcons.xaml @@ -7,4 +7,6 @@ + + \ No newline at end of file diff --git a/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.cs b/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.cs index f89da52..da8fbe7 100644 --- a/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.cs +++ b/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.cs @@ -11,6 +11,11 @@ namespace IconPacks.Avalonia [MetaData("Boxicons", "https://boxicons.com/", "https://boxicons.com/usage/#license")] public class PackIconBoxIcons : PackIconControlBase { + public PackIconBoxIcons() + { + base.UpdateIconPseudoClasses(true, false, true); + } + public static readonly StyledProperty KindProperty = AvaloniaProperty.Register(nameof(Kind)); @@ -33,8 +38,6 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang { UpdateData(); } - - base.UpdateIconPseudoClasses(true, false, true); } protected override void SetKind(TKind iconKind) diff --git a/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.xaml b/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.xaml index 00f0c32..33b3047 100644 --- a/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.xaml +++ b/src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.xaml @@ -7,39 +7,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + IconPacks.Avalonia + + + + diff --git a/src/IconPacks.Avalonia.Core/PackIcon.xaml b/src/IconPacks.Avalonia.Core/PackIcon.xaml new file mode 100644 index 0000000..a1042b6 --- /dev/null +++ b/src/IconPacks.Avalonia.Core/PackIcon.xaml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/IconPacks.Avalonia.Core/PackIconControlBase.cs b/src/IconPacks.Avalonia.Core/PackIconControlBase.cs index 3001aab..80fa4b9 100644 --- a/src/IconPacks.Avalonia.Core/PackIconControlBase.cs +++ b/src/IconPacks.Avalonia.Core/PackIconControlBase.cs @@ -27,19 +27,19 @@ public abstract class PackIconControlBase : PackIconBase /// /// ":icon-data-flipped-vertically" public const string IconDataFlippedVerticallyPseudoClass = ":icon-data-flipped-vertically"; - + /// /// A string representing the pseudo-class when the icon data is drawn filled /// /// ":icon-filled" public const string IconFilledPseudoClass = ":icon-filled"; - + /// /// A string representing the pseudo-class when the icon data is drawn outlined /// - /// ":icon-outlided" + /// ":icon-outlined" public const string IconOutlinedPseudoClass = ":icon-outlined"; - + protected PackIconControlBase() { AffectsRender(SpinProperty, SpinDurationProperty, OpacityProperty, SpinEasingFunctionProperty, FlipProperty, RotationAngleProperty); diff --git a/src/IconPacks.Avalonia.Core/PackIconControlBase.xaml b/src/IconPacks.Avalonia.Core/PackIconControlBase.xaml new file mode 100644 index 0000000..af7bcc6 --- /dev/null +++ b/src/IconPacks.Avalonia.Core/PackIconControlBase.xaml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/IconPacks.Avalonia/Icons.xaml b/src/IconPacks.Avalonia/Icons.xaml index 15bd6f4..18bb3db 100644 --- a/src/IconPacks.Avalonia/Icons.xaml +++ b/src/IconPacks.Avalonia/Icons.xaml @@ -8,5 +8,6 @@ + \ No newline at end of file diff --git a/src/IconPacks.Avalonia/PackIconControl.xaml b/src/IconPacks.Avalonia/PackIconControl.xaml index a6e48dc..1fbb4b7 100644 --- a/src/IconPacks.Avalonia/PackIconControl.xaml +++ b/src/IconPacks.Avalonia/PackIconControl.xaml @@ -1,191 +1,15 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +