mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-08 10:16:35 +08:00
* Initial plan * Add SplitButtonSpinner theme for ButtonSpinner Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com> Agent-Logs-Url: https://github.com/irihitech/Semi.Avalonia/sessions/7095fb6c-cdd9-48c0-9076-85a35fa93453 * feat: enhance ButtonSpinner and NumericUpDown with new styles and properties. * fix: fix Glyph and enlarge icons. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com> Co-authored-by: Dong Bin <popmessiah@hotmail.com> Co-authored-by: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
64 lines
2.5 KiB
XML
64 lines
2.5 KiB
XML
<UserControl
|
|
x:Class="Semi.Avalonia.Demo.Pages.ButtonSpinnerDemo"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<StackPanel HorizontalAlignment="Left" Spacing="20">
|
|
<StackPanel Orientation="Horizontal">
|
|
<ToggleSwitch Name="showSpinCheck" IsChecked="True" Content="Show Button Spinner" />
|
|
<ToggleSwitch Name="allowSpinCheck" IsChecked="True" Content="Allow Spin" />
|
|
</StackPanel>
|
|
<ButtonSpinner
|
|
Height="30"
|
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
|
BorderThickness="1"
|
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
|
Spin="OnSpin">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="A.S.I.A" />
|
|
</ButtonSpinner>
|
|
<ButtonSpinner
|
|
Height="30"
|
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
|
BorderThickness="1"
|
|
ButtonSpinnerLocation="Left"
|
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
|
Spin="OnSpin">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="A.S.I.A" />
|
|
</ButtonSpinner>
|
|
<ButtonSpinner
|
|
Height="30"
|
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
|
BorderThickness="1"
|
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
|
Spin="OnSpin"
|
|
Theme="{StaticResource SplitButtonSpinner}">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="A.S.I.A" />
|
|
</ButtonSpinner>
|
|
<ButtonSpinner
|
|
Height="30"
|
|
AllowSpin="{Binding #allowSpinCheck.IsChecked}"
|
|
ButtonSpinnerLocation="Left"
|
|
BorderThickness="1"
|
|
ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"
|
|
Spin="OnSpin"
|
|
Theme="{StaticResource SplitButtonSpinner}">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="A.S.I.A" />
|
|
</ButtonSpinner>
|
|
</StackPanel>
|
|
</UserControl> |