From dc010357ba6a49e4bc2a6f5b27ce6ef8f132a65c Mon Sep 17 00:00:00 2001 From: rabbitism Date: Mon, 30 Jan 2023 00:05:42 +0800 Subject: [PATCH] feat: Update split button style. --- .../Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 26 +++ demo/Semi.Avalonia.Demo/Pages/Overview.axaml | 26 +-- src/Semi.Avalonia/Controls/SplitButton.axaml | 151 +++++++++++------- 3 files changed, 134 insertions(+), 69 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml index 0d97d8c..066f2b7 100644 --- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml @@ -84,6 +84,32 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/demo/Semi.Avalonia.Demo/Pages/Overview.axaml b/demo/Semi.Avalonia.Demo/Pages/Overview.axaml index 3b44c65..5838836 100644 --- a/demo/Semi.Avalonia.Demo/Pages/Overview.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/Overview.axaml @@ -15,14 +15,6 @@ Text="Welcome to Semi Avalonia" Theme="{StaticResource TitleTextBlock}" /> - - - - - - - - @@ -61,8 +53,6 @@ 选项 2 - - Option 1 @@ -79,6 +69,7 @@ + Avalonia WPF @@ -89,6 +80,15 @@ Content="Content" OffContent="No" OnContent="Yes" /> + + @@ -103,7 +103,9 @@ - + + + @@ -132,6 +134,7 @@ Classes="revealPasswordButton" PasswordChar="*" Text="Avalonia" /> + @@ -152,6 +155,7 @@ List Item 4 List Item 5 + diff --git a/src/Semi.Avalonia/Controls/SplitButton.axaml b/src/Semi.Avalonia/Controls/SplitButton.axaml index 5281171..f4cf5ae 100644 --- a/src/Semi.Avalonia/Controls/SplitButton.axaml +++ b/src/Semi.Avalonia/Controls/SplitButton.axaml @@ -18,67 +18,102 @@ - - - - - + + + + + + + + + + + + + + + +