diff --git a/src/Semi.Avalonia.Demo/MainWindow.axaml b/src/Semi.Avalonia.Demo/MainWindow.axaml index cc96feb..44476e5 100644 --- a/src/Semi.Avalonia.Demo/MainWindow.axaml +++ b/src/Semi.Avalonia.Demo/MainWindow.axaml @@ -17,5 +17,8 @@ + + + diff --git a/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml b/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml new file mode 100644 index 0000000..d55be47 --- /dev/null +++ b/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml.cs b/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml.cs new file mode 100644 index 0000000..2d708e4 --- /dev/null +++ b/src/Semi.Avalonia.Demo/Pages/LabelDemo.axaml.cs @@ -0,0 +1,18 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Semi.Avalonia.Demo.Pages; + +public partial class LabelDemo : UserControl +{ + public LabelDemo() + { + InitializeComponent(); + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } +} \ No newline at end of file diff --git a/src/Semi.Avalonia/Controls/Label.axaml b/src/Semi.Avalonia/Controls/Label.axaml index c70f024..cc3e0aa 100644 --- a/src/Semi.Avalonia/Controls/Label.axaml +++ b/src/Semi.Avalonia/Controls/Label.axaml @@ -1,4 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -78,4 +153,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Semi.Avalonia/Themes/Light/Label.axaml b/src/Semi.Avalonia/Themes/Light/Label.axaml new file mode 100644 index 0000000..4ad4f42 --- /dev/null +++ b/src/Semi.Avalonia/Themes/Light/Label.axaml @@ -0,0 +1,109 @@ + + + + 1 + 8 2 + 8 4 + 20 + 24 + 12 + 3 + 9999 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Semi.Avalonia/Themes/Light/Light.axaml b/src/Semi.Avalonia/Themes/Light/Light.axaml index 970f3b5..478588e 100644 --- a/src/Semi.Avalonia/Themes/Light/Light.axaml +++ b/src/Semi.Avalonia/Themes/Light/Light.axaml @@ -4,6 +4,7 @@ +