Files
Shrlalgo.RvKits/AntdWpfDemo/Views/ProgressView.xaml

74 lines
4.0 KiB
Plaintext
Raw Normal View History

2025-07-31 20:12:24 +08:00
<UserControl
d:DesignHeight="600"
d:DesignWidth="930"
mc:Ignorable="d"
x:Class="AntDesignWPFDemo.Views.ProgressView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2025-07-11 09:20:23 +08:00
<ScrollViewer>
2025-07-31 20:12:24 +08:00
<Grid Margin="16,0">
2025-07-11 09:20:23 +08:00
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel>
2025-07-12 23:31:32 +08:00
<Label Content="Progress" Style="{StaticResource Ant.H1}" />
2025-07-11 09:20:23 +08:00
<TextBlock Style="{StaticResource Ant.P}" Text="A simple text popup tip." />
2025-07-12 23:31:32 +08:00
<Label Content="When To Use" Style="{StaticResource Ant.H2}" />
2025-07-11 09:20:23 +08:00
<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." />
2025-07-12 23:31:32 +08:00
<Label Content="Examples" Style="{StaticResource Ant.H2}" />
2025-07-11 09:20:23 +08:00
</StackPanel>
<Grid Grid.Row="1">
<Grid.Resources>
2025-07-12 23:31:32 +08:00
<Style TargetType="antd:AntButton">
2025-07-31 20:12:24 +08:00
<Setter Property="Margin" Value="8,0,0,8" />
2025-07-11 09:20:23 +08:00
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
2025-07-31 20:12:24 +08:00
<StackPanel Margin="8,0">
2025-07-11 09:20:23 +08:00
<antd:CodeBox Title="Arrow pointing at the center">
2025-07-12 23:31:32 +08:00
<antd:CodeBox.Description>进度条</antd:CodeBox.Description>
2025-07-11 09:20:23 +08:00
<antd:CodeBox.Content>
2025-07-12 23:31:32 +08:00
<StackPanel Height="180">
2025-07-31 20:12:24 +08:00
<Slider
Margin="0,0,0,10"
Maximum="100"
Minimum="0"
x:Name="Slider" />
2025-07-12 23:31:32 +08:00
<ProgressBar Margin="0,0,0,10" Value="{Binding ElementName=Slider, Path=Value}" />
2025-07-31 20:12:24 +08:00
<!--<ProgressBar Margin="0,0,0,10" Value="{Binding ElementName=Slider, Path=Value}" />-->
<!--<ProgressBar IsIndeterminate="True" Margin="0,0,0,10" Value="{Binding ElementName=Slider, Path=Value}" />-->
<ProgressBar IsIndeterminate="True" Margin="0,0,0,10" />
2025-07-12 23:31:32 +08:00
<UniformGrid>
2025-07-31 20:12:24 +08:00
<ProgressBar
Style="{StaticResource Ant.CircularProgressBar}"
Width="100"
Value="{Binding ElementName=Slider, Path=Value}" />
<ProgressBar
Width="100"
IsIndeterminate="True"
Style="{StaticResource Ant.CircularProgressBar}" />
2025-07-12 23:31:32 +08:00
</UniformGrid>
2025-07-11 09:20:23 +08:00
</StackPanel>
</antd:CodeBox.Content>
2025-07-31 20:12:24 +08:00
<antd:CodeBox.Code>
&lt;ProgressBar Value="30" Margin="0,0,0,10"/&gt;\n\n
2025-07-11 09:20:23 +08:00
&lt;ProgressBar IsIndeterminate="True" Margin="0,0,0,10"/&gt;\n\n
2025-07-31 20:12:24 +08:00
&lt;ProgressBar MaxWidth="100" Value="50" Style="{StaticResource Ant.CircularProgressBar}"/&gt;
</antd:CodeBox.Code>
2025-07-11 09:20:23 +08:00
</antd:CodeBox>
</StackPanel>
</Grid>
</Grid>
</ScrollViewer>
2025-07-12 23:31:32 +08:00
</UserControl>