From 1378219b7aa48dd7ae938b920f23267c09b13231 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 15 Jul 2024 00:33:28 +0800 Subject: [PATCH] feat: RepeatButton. --- .../Semi.Avalonia.Demo/Pages/ButtonDemo.axaml | 11 ++-- .../Pages/RepeatButtonDemo.axaml | 27 +++++++- src/Semi.Avalonia/Controls/RepeatButton.axaml | 61 ++++++++++++++++--- 3 files changed, 82 insertions(+), 17 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml index 02b2216..2974962 100644 --- a/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/ButtonDemo.axaml @@ -44,11 +44,6 @@ - - - - - Solid @@ -96,6 +91,12 @@ + Size Classes + + + + + DropDownButton diff --git a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml index 0f417ef..a9045c9 100644 --- a/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/RepeatButtonDemo.axaml @@ -33,6 +33,21 @@ Disabled + Outline + + Primary + Secondary + Tertiary + Success + Warning + Danger + + Disabled + + Borderless Primary @@ -48,10 +63,18 @@ Disabled - + Disabled + + + + + + + Size Classes + Small Default Large - + \ No newline at end of file diff --git a/src/Semi.Avalonia/Controls/RepeatButton.axaml b/src/Semi.Avalonia/Controls/RepeatButton.axaml index 88e17d2..357c94f 100644 --- a/src/Semi.Avalonia/Controls/RepeatButton.axaml +++ b/src/Semi.Avalonia/Controls/RepeatButton.axaml @@ -4,17 +4,17 @@ x:CompileBindings="True"> - - + + @@ -22,7 +22,7 @@ - + @@ -103,6 +102,16 @@ + + + + + + + + + + + + + + @@ -206,8 +247,8 @@ BasedOn="{StaticResource {x:Type RepeatButton}}" TargetType="RepeatButton">