mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-08 02:06:37 +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>
61 lines
2.2 KiB
XML
61 lines
2.2 KiB
XML
<UserControl
|
|
x:Class="Semi.Avalonia.Demo.Pages.NumericUpDownDemo"
|
|
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="800"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<StackPanel HorizontalAlignment="Left" Spacing="20">
|
|
<StackPanel.Styles>
|
|
<Style Selector="NumericUpDown">
|
|
<Setter Property="Width" Value="300" />
|
|
<Setter Property="Maximum" Value="100" />
|
|
<Setter Property="Minimum" Value="0" />
|
|
</Style>
|
|
</StackPanel.Styles>
|
|
|
|
<NumericUpDown />
|
|
<NumericUpDown Increment="10" />
|
|
<NumericUpDown ButtonSpinnerLocation="Left" />
|
|
<NumericUpDown ShowButtonSpinner="False" />
|
|
<NumericUpDown Classes="Large" />
|
|
<NumericUpDown Classes="Small" />
|
|
<NumericUpDown InnerLeftContent="Price" InnerRightContent="$" />
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<NumericUpDown
|
|
Width="100"
|
|
Classes="Large"
|
|
PlaceholderText="Large"
|
|
ButtonSpinnerLocation="Left" />
|
|
<NumericUpDown
|
|
Width="100"
|
|
PlaceholderText="Default"
|
|
ShowButtonSpinner="False" />
|
|
<NumericUpDown
|
|
Width="100"
|
|
PlaceholderText="Small"
|
|
Classes="Small" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<NumericUpDown Width="100" ButtonSpinnerLocation="Left" />
|
|
<NumericUpDown Width="100" ShowButtonSpinner="False" />
|
|
<NumericUpDown Width="100" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<NumericUpDown Width="100" ShowButtonSpinner="False" />
|
|
<NumericUpDown Width="100" IsEnabled="False" />
|
|
<NumericUpDown Width="100" ButtonSpinnerLocation="Left" />
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
<TextBlock Text="Split" />
|
|
<NumericUpDown Classes="Split" Width="300" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</UserControl> |