命名调整

This commit is contained in:
GG Z
2025-07-12 23:31:32 +08:00
parent 4d35cadb56
commit 6d96da6f90
88 changed files with 3975 additions and 2763 deletions

View File

@@ -79,7 +79,7 @@
<antd:CodeBox.Content>
<WrapPanel>
<antd:Avatar Background="{Binding Background}" Margin="0 0 16 0" Text="{Binding Text}" />
<antd:Button x:Name="Change" Size="Small" Content="Change" />
<antd:AntButton x:Name="Change" Size="Small" Content="Change" />
</WrapPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>

View File

@@ -25,7 +25,7 @@
</StackPanel>
<Grid Grid.Row="1">
<Grid.Resources>
<Style TargetType="antd:Button">
<Style TargetType="antd:AntButton">
<Setter Property="Margin" Value="0 0 8 12" />
</Style>
</Grid.Resources>
@@ -40,10 +40,10 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<WrapPanel Orientation="Horizontal">
<antd:Button Type="Primary" Content="Primary" />
<antd:Button Content="Default" />
<antd:Button Type="Dashed" Content="Dashed" />
<antd:Button Type="Danger" Content="Danger" />
<antd:AntButton Type="Primary" Content="Primary" />
<antd:AntButton Content="Default" />
<antd:AntButton Type="Dashed" Content="Dashed" />
<antd:AntButton Type="Danger" Content="Danger" />
</WrapPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>
@@ -64,12 +64,12 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<WrapPanel Orientation="Horizontal">
<antd:Button Type="Primary" Content="Primary" />
<antd:Button Content="Default" Size="Large" />
<antd:Button Type="Dashed" Content="Dashed" />
<antd:Button Type="Danger" Content="Danger" />
<antd:Button Type="Primary" Icon="search" Shape="Circle" />
<antd:Button Type="Primary" Icon="search" Content="Search" />
<antd:AntButton Type="Primary" Content="Primary" />
<antd:AntButton Content="Default" Size="Large" />
<antd:AntButton Type="Dashed" Content="Dashed" />
<antd:AntButton Type="Danger" Content="Danger" />
<antd:AntButton Type="Primary" Icon="search" Shape="Circle" />
<antd:AntButton Type="Primary" Icon="search" Content="Search" />
</WrapPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>
@@ -91,12 +91,12 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<WrapPanel Orientation="Horizontal">
<antd:Button Type="Primary" Content="Loading" Loading="True" />
<antd:Button Type="Primary" Content="Loading" Loading="True" Size="small" />
<antd:Button x:Name="Click1" Type="Primary" Content="Click Me!" Loading="{Binding Loading1}" />
<antd:Button x:Name="Click2" Type="Primary" Content="Click Me!" Icon="poweroff" Loading="{Binding Loading2}" />
<antd:Button Shape="Circle" Loading="True" />
<antd:Button Type="Primary" Shape="Circle" Loading="True" />
<antd:AntButton Type="Primary" Content="Loading" Loading="True" />
<antd:AntButton Type="Primary" Content="Loading" Loading="True" Size="small" />
<antd:AntButton x:Name="Click1" Type="Primary" Content="Click Me!" Loading="{Binding Loading1}" />
<antd:AntButton x:Name="Click2" Type="Primary" Content="Click Me!" Icon="poweroff" Loading="{Binding Loading2}" />
<antd:AntButton Shape="Circle" Loading="True" />
<antd:AntButton Type="Primary" Shape="Circle" Loading="True" />
</WrapPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>
@@ -121,14 +121,14 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<WrapPanel Orientation="Horizontal">
<antd:Button Type="Primary" Icon="search" Shape="Circle" />
<antd:Button Type="Primary" Icon="search" Content="Search" />
<antd:Button Icon="search" Shape="Circle" />
<antd:Button Icon="search" Content="Search" />
<antd:Button Type="Dashed" Icon="search" Shape="Circle" />
<antd:Button Type="Dashed" Icon="search" Content="Search" />
<antd:Button Type="Danger" Icon="search" Shape="Circle" />
<antd:Button Type="Danger" Icon="search" Content="Search" />
<antd:AntButton Type="Primary" Icon="search" Shape="Circle" />
<antd:AntButton Type="Primary" Icon="search" Content="Search" />
<antd:AntButton Icon="search" Shape="Circle" />
<antd:AntButton Icon="search" Content="Search" />
<antd:AntButton Type="Dashed" Icon="search" Shape="Circle" />
<antd:AntButton Type="Dashed" Icon="search" Content="Search" />
<antd:AntButton Type="Danger" Icon="search" Shape="Circle" />
<antd:AntButton Type="Danger" Icon="search" Content="Search" />
</WrapPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>
@@ -152,16 +152,16 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<WrapPanel Orientation="Horizontal">
<antd:Button Type="Primary" Content="Primary" />
<antd:Button Type="Primary" Content="Primary(disabled)" IsEnabled="False" />
<antd:Button Content="Default" />
<antd:Button Content="Default(disabled)" IsEnabled="False" />
<antd:Button Type="Dashed" Content="Dashed" />
<antd:Button Type="Dashed" Content="Dashed(disabled)" IsEnabled="False" />
<antd:AntButton Type="Primary" Content="Primary" />
<antd:AntButton Type="Primary" Content="Primary(disabled)" IsEnabled="False" />
<antd:AntButton Content="Default" />
<antd:AntButton Content="Default(disabled)" IsEnabled="False" />
<antd:AntButton Type="Dashed" Content="Dashed" />
<antd:AntButton Type="Dashed" Content="Dashed(disabled)" IsEnabled="False" />
<StackPanel Background="#BEC8C8">
<WrapPanel Margin="8 8 8 0">
<antd:Button Content="Ghost" Ghost="True" />
<antd:Button Content="Ghost(disabled)" Ghost="True" IsEnabled="False" />
<antd:AntButton Content="Ghost" Ghost="True" />
<antd:AntButton Content="Ghost(disabled)" Ghost="True" IsEnabled="False" />
</WrapPanel>
</StackPanel>
</WrapPanel>
@@ -192,10 +192,10 @@
<antd:CodeBox.Content>
<StackPanel Background="#BEC8C8">
<WrapPanel Margin="16 26 16 16" Orientation="Horizontal">
<antd:Button Type="Primary" Content="Primary" Ghost="True" />
<antd:Button Content="Default" Ghost="True" />
<antd:Button Type="Dashed" Content="Dashed" Ghost="True" />
<antd:Button Type="Danger" Content="Danger" Ghost="True" />
<antd:AntButton Type="Primary" Content="Primary" Ghost="True" />
<antd:AntButton Content="Default" Ghost="True" />
<antd:AntButton Type="Dashed" Content="Dashed" Ghost="True" />
<antd:AntButton Type="Danger" Content="Danger" Ghost="True" />
</WrapPanel>
</StackPanel>
</antd:CodeBox.Content>

View File

@@ -56,8 +56,8 @@
</Grid.RowDefinitions>
<CheckBox Content="{Binding CheckBox, Mode=OneWay}" IsChecked="{Binding IsChecked}" IsEnabled="{Binding IsEnabled}" />
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0 20 0 0">
<antd:Button x:Name="ToggleCheck" Type="Primary" Content="{Binding Check, Mode=OneWay}" Margin="0 0 10 0"/>
<antd:Button x:Name="ToggleEnabled" Type="Primary" Content="{Binding Enabled, Mode=OneWay}" />
<antd:AntButton x:Name="ToggleCheck" Type="Primary" Content="{Binding Check, Mode=OneWay}" Margin="0 0 10 0"/>
<antd:AntButton x:Name="ToggleEnabled" Type="Primary" Content="{Binding Enabled, Mode=OneWay}" />
</StackPanel>
</Grid>
</antd:CodeBox.Content>

View File

@@ -72,21 +72,21 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<antd:Border Grid.Column="0"
<antd:AntdBorder Grid.Column="0"
UseLayoutRounding="True"
CornerRadius="4 0 0 4"
BorderThickness="1 1 0 1"
BorderBrush="{DynamicResource InputBorderBrush}" Padding="11 0">
<TextBlock Text="http://" VerticalAlignment="Center" />
</antd:Border>
<TextBox Grid.Column="1" Text="mysite" Margin="0" antd:Control.CornerRadius="0" />
<antd:Border Grid.Column="2"
</antd:AntdBorder>
<TextBox Grid.Column="1" Text="mysite" Margin="0" antd:AntdControl.CornerRadius="0" />
<antd:AntdBorder Grid.Column="2"
UseLayoutRounding="True"
CornerRadius="0 4 4 0"
BorderThickness="0 1 1 1"
BorderBrush="{DynamicResource InputBorderBrush}" Padding="11 0">
<TextBlock Text=".com" VerticalAlignment="Center" />
</antd:Border>
</antd:AntdBorder>
</Grid>
</StackPanel>
</antd:CodeBox.Content>
@@ -115,12 +115,12 @@
</TextBox>
<TextBox antd:Input.Placeholder="input search text" Padding="12 0 0 0">
<antd:Input.Suffix>
<antd:Button Margin="8 -1 -2 -1" Type="Primary" Content="Search" antd:Control.CornerRadius="0 4 4 0" />
<antd:AntButton Margin="8 -1 -2 -1" Type="Primary" Content="Search" antd:AntdControl.CornerRadius="0 4 4 0" />
</antd:Input.Suffix>
</TextBox>
<TextBox antd:Input.Placeholder="input search text" antd:Control.Size="Large" Padding="12 0 0 0">
<TextBox antd:Input.Placeholder="input search text" antd:AntdControl.Size="Large" Padding="12 0 0 0">
<antd:Input.Suffix>
<antd:Button Type="Primary" Size="Large" Margin="8 -1 -2 -1" Content="Search" antd:Control.CornerRadius="0 4 4 0" />
<antd:AntButton Type="Primary" Size="Large" Margin="8 -1 -2 -1" Content="Search" antd:AntdControl.CornerRadius="0 4 4 0" />
</antd:Input.Suffix>
</TextBox>
</StackPanel>
@@ -173,9 +173,9 @@
</antd:CodeBox.Description>
<antd:CodeBox.Content>
<StackPanel>
<TextBox antd:Input.Placeholder="large size" antd:Control.Size="Large" />
<TextBox antd:Input.Placeholder="large size" antd:AntdControl.Size="Large" />
<TextBox antd:Input.Placeholder="default size" />
<TextBox antd:Input.Placeholder="small size" antd:Control.Size="Small" />
<TextBox antd:Input.Placeholder="small size" antd:AntdControl.Size="Small" />
</StackPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>

View File

@@ -1,9 +1,9 @@
<UserControl x:Class="AntdWpfDemo.Views.ProgressView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"
mc:Ignorable="d"
d:DesignHeight="600"
d:DesignWidth="930">
@@ -16,17 +16,17 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel>
<Label Style="{StaticResource Ant.H1}" Content="Progress" />
<Label Content="Progress" Style="{StaticResource Ant.H1}" />
<TextBlock Style="{StaticResource Ant.P}" Text="A simple text popup tip." />
<Label Style="{StaticResource Ant.H2}" Content="When To Use" />
<Label Content="When To Use" Style="{StaticResource Ant.H2}" />
<TextBlock Style="{StaticResource Ant.P}" Text="The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip doesn't support complex text or operations.&#x0a;To provide an explanation of a button/text/operation. It's often used instead of the html title attribute." />
<Label Style="{StaticResource Ant.H2}" Content="Examples" />
<Label Content="Examples" Style="{StaticResource Ant.H2}" />
</StackPanel>
<Grid Grid.Row="1">
<Grid.Resources>
<Style TargetType="antd:Button">
<Style TargetType="antd:AntButton">
<Setter Property="Margin" Value="8 0 0 8" />
</Style>
</Grid.Resources>
@@ -36,25 +36,31 @@
</Grid.ColumnDefinitions>
<StackPanel Margin="8 0">
<antd:CodeBox Title="Arrow pointing at the center">
<antd:CodeBox.Description>
进度条
</antd:CodeBox.Description>
<antd:CodeBox.Description>进度条</antd:CodeBox.Description>
<antd:CodeBox.Content>
<StackPanel Height="150">
<Slider x:Name="Slider" Margin="0,0,0,10" Maximum="100" Minimum="0"/>
<ProgressBar Value="{Binding ElementName=Slider,Path=Value}" Margin="0,0,0,10"/>
<ProgressBar IsIndeterminate="True" Margin="0,0,0,10"/>
<ProgressBar MaxWidth="80" Value="{Binding ElementName=Slider,Path=Value}" Style="{StaticResource Ant.CircularProgressBar}"/>
<StackPanel Height="180">
<Slider x:Name="Slider"
Margin="0,0,0,10"
Maximum="100"
Minimum="0" />
<ProgressBar Margin="0,0,0,10" Value="{Binding ElementName=Slider, Path=Value}" />
<ProgressBar Margin="0,0,0,10" IsIndeterminate="True" />
<UniformGrid>
<ProgressBar MaxWidth="80"
Value="{Binding ElementName=Slider, Path=Value}"
Style="{StaticResource Ant.CircularProgressBar}" />
<ProgressBar MaxWidth="80"
IsIndeterminate="True"
Style="{StaticResource Ant.CircularProgressBar}" />
</UniformGrid>
</StackPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>
&lt;ProgressBar Value="30" Margin="0,0,0,10"/&gt;\n\n
<antd:CodeBox.Code>&lt;ProgressBar Value="30" Margin="0,0,0,10"/&gt;\n\n
&lt;ProgressBar IsIndeterminate="True" Margin="0,0,0,10"/&gt;\n\n
&lt;ProgressBar MaxWidth="100" Value="50" Style="{StaticResource Ant.CircularProgressBar}"/&gt;
</antd:CodeBox.Code>
&lt;ProgressBar MaxWidth="100" Value="50" Style="{StaticResource Ant.CircularProgressBar}"/&gt;</antd:CodeBox.Code>
</antd:CodeBox>
</StackPanel>
</Grid>
</Grid>
</ScrollViewer>
</UserControl>
</UserControl>

View File

@@ -85,7 +85,7 @@
<StackPanel>
<RadioButton Content="Radio" IsEnabled="{Binding IsEnabled}" Margin="0 0 0 8" />
<RadioButton Content="Radio" IsEnabled="{Binding IsEnabled}" IsChecked="True" />
<antd:Button x:Name="Toggle" Type="Primary" Content="Toggle disabled" Margin="0 20 0 0" />
<antd:AntButton x:Name="Toggle" Type="Primary" Content="Toggle disabled" Margin="0 20 0 0" />
</StackPanel>
</antd:CodeBox.Content>
<antd:CodeBox.Code>

View File

@@ -1,4 +1,4 @@
<antd:Window x:Class="AntdWpfDemo.Views.ShellView"
<antd:AntdWindow x:Class="AntdWpfDemo.Views.ShellView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"
@@ -37,4 +37,4 @@
<!--<antd:Alert Type="Success" Description="描述"/>
<antd:Button Content="Button"/>--><!--
</StackPanel>-->
</antd:Window>
</antd:AntdWindow>

View File

@@ -150,7 +150,7 @@
<antd:Switch IsChecked="True" IsEnabled="{Binding IsEnabled}" />
</WrapPanel>
<WrapPanel Margin="0 8 0 0">
<antd:Button x:Name="Toggle" Type="Primary" Content="Toggle disabled" />
<antd:AntButton x:Name="Toggle" Type="Primary" Content="Toggle disabled" />
</WrapPanel>
</StackPanel>
</antd:CodeBox.Content>

View File

@@ -181,7 +181,7 @@
<antd:Tag Content="Movies" Closable="True" Visibility="{Binding Visibility, Mode=TwoWay}" />
</WrapPanel>
<WrapPanel>
<antd:Button x:Name="Toggle" Size="Small" Content="Toggle" />
<antd:AntButton x:Name="Toggle" Size="Small" Content="Toggle" />
</WrapPanel>
</StackPanel>
</antd:CodeBox.Content>

View File

@@ -27,7 +27,7 @@
</StackPanel>
<Grid Grid.Row="1">
<Grid.Resources>
<Style TargetType="antd:Button">
<Style TargetType="antd:AntButton">
<Setter Property="Margin" Value="8 0 0 8" />
</Style>
</Grid.Resources>
@@ -58,10 +58,10 @@
<antd:CodeBox.Content>
<StackPanel>
<WrapPanel>
<antd:Button Content="Align edge / 边缘对齐" />
<antd:AntButton Content="Align edge / 边缘对齐" />
</WrapPanel>
<WrapPanel>
<antd:Button Content="Arrow points to center / 箭头指向中心" />
<antd:AntButton Content="Arrow points to center / 箭头指向中心" />
</WrapPanel>
</StackPanel>
</antd:CodeBox.Content>
@@ -87,24 +87,24 @@
<RowDefinition />
</Grid.RowDefinitions>
<WrapPanel HorizontalAlignment="Center">
<antd:Button Content="TL" />
<antd:Button Content="Top" />
<antd:Button Content="TR" />
<antd:AntButton Content="TL" />
<antd:AntButton Content="Top" />
<antd:AntButton Content="TR" />
</WrapPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Left">
<antd:Button Content="LT" />
<antd:Button Content="Left" />
<antd:Button Content="LB" />
<antd:AntButton Content="LT" />
<antd:AntButton Content="Left" />
<antd:AntButton Content="LB" />
</StackPanel>
<StackPanel Grid.Row="1" HorizontalAlignment="Right">
<antd:Button Content="RT" />
<antd:Button Content="Right" />
<antd:Button Content="RB" />
<antd:AntButton Content="RT" />
<antd:AntButton Content="Right" />
<antd:AntButton Content="RB" />
</StackPanel>
<WrapPanel Grid.Row="2" HorizontalAlignment="Center">
<antd:Button Content="BL" />
<antd:Button Content="Bottom" />
<antd:Button Content="BR" />
<antd:AntButton Content="BL" />
<antd:AntButton Content="Bottom" />
<antd:AntButton Content="BR" />
</WrapPanel>
</Grid>
</antd:CodeBox.Content>