命名调整

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

@@ -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>