月更
This commit is contained in:
@@ -1,35 +1,36 @@
|
||||
<UserControl x:Class="AntdWpfDemo.Views.SpinView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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"
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="600"
|
||||
d:DesignWidth="930">
|
||||
<UserControl
|
||||
d:DesignHeight="600"
|
||||
d:DesignWidth="930"
|
||||
mc:Ignorable="d"
|
||||
x:Class="AntDesignWPFDemo.Views.SpinView"
|
||||
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">
|
||||
|
||||
<ScrollViewer>
|
||||
<Grid Margin="16 0">
|
||||
<Grid Margin="16,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel>
|
||||
<Label Style="{StaticResource Ant.H1}" Content="Spin" />
|
||||
<Label Content="Spin" Style="{StaticResource Ant.H1}" />
|
||||
<TextBlock Style="{StaticResource Ant.P}" Text="A spinner for displaying loading state of a page or a section." />
|
||||
|
||||
<Label Style="{StaticResource Ant.H2}" Content="When To Use" />
|
||||
<Label Content="When To Use" Style="{StaticResource Ant.H2}" />
|
||||
<TextBlock Style="{StaticResource Ant.P}" Text="When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude." />
|
||||
|
||||
<Label Style="{StaticResource Ant.H2}" Content="Examples" />
|
||||
<Label Content="Examples" Style="{StaticResource Ant.H2}" />
|
||||
</StackPanel>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Margin="8 0">
|
||||
<StackPanel Margin="8,0">
|
||||
<antd:CodeBox Title="Basic">
|
||||
<antd:CodeBox.Description>
|
||||
A simple loading status.
|
||||
@@ -40,10 +41,10 @@
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Content>
|
||||
<antd:CodeBox.Code>
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"\n\n
|
||||
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"\n\n
|
||||
<WrapPanel>\n
|
||||
\t<antd:Spin />\n
|
||||
\t<antd:Spin />\n
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Code>
|
||||
</antd:CodeBox>
|
||||
@@ -54,17 +55,17 @@
|
||||
<antd:CodeBox.Content>
|
||||
<WrapPanel>
|
||||
<antd:Spin Tip="Loading...">
|
||||
<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />
|
||||
<antd:Alert Description="Further details about the context of this alert." Message="Alert message title" />
|
||||
</antd:Spin>
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Content>
|
||||
<antd:CodeBox.Code>
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"\n\n
|
||||
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"\n\n
|
||||
<WrapPanel>\n
|
||||
\t<antd:Spin Tip="Loading...">\n
|
||||
\t\t<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />\n
|
||||
\t</antd:Spin>\n
|
||||
\t<antd:Spin Tip="Loading...">\n
|
||||
\t\t<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />\n
|
||||
\t</antd:Spin>\n
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Code>
|
||||
</antd:CodeBox>
|
||||
@@ -76,43 +77,43 @@
|
||||
<WrapPanel>
|
||||
<antd:Spin>
|
||||
<antd:Spin.Indicator>
|
||||
<antd:Icon Type="loading" FontSize="24" />
|
||||
<antd:Icon FontSize="24" Type="loading" />
|
||||
</antd:Spin.Indicator>
|
||||
</antd:Spin>
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Content>
|
||||
<antd:CodeBox.Code>
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"\n\n
|
||||
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"\n\n
|
||||
<WrapPanel>\n
|
||||
\t<antd:Spin>\n
|
||||
\t\t<antd:Spin.Indicator>\n
|
||||
\t\t\t<antd:Icon Type="loading" FontSize="24" />\n
|
||||
\t\t</antd:Spin.Indicator>\n
|
||||
\t</antd:Spin>\n
|
||||
\t<antd:Spin>\n
|
||||
\t\t<antd:Spin.Indicator>\n
|
||||
\t\t\t<antd:Icon Type="loading" FontSize="24" />\n
|
||||
\t\t</antd:Spin.Indicator>\n
|
||||
\t</antd:Spin>\n
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Code>
|
||||
</antd:CodeBox>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Margin="8 0">
|
||||
<StackPanel Grid.Column="1" Margin="8,0">
|
||||
<antd:CodeBox Title="Size">
|
||||
<antd:CodeBox.Description>
|
||||
A small `Spin` use in loading text, default `Spin` use in loading card-level block, and large `Spin` use in loading page.
|
||||
</antd:CodeBox.Description>
|
||||
<antd:CodeBox.Content>
|
||||
<WrapPanel>
|
||||
<antd:Spin Size="Small" Margin="0 0 16 16" />
|
||||
<antd:Spin Margin="0 0 16 16" />
|
||||
<antd:Spin Size="Large" Margin="0 0 16 16" />
|
||||
<antd:Spin Margin="0,0,16,16" Size="Small" />
|
||||
<antd:Spin Margin="0,0,16,16" />
|
||||
<antd:Spin Margin="0,0,16,16" Size="Large" />
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Content>
|
||||
<antd:CodeBox.Code>
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"\n\n
|
||||
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"\n\n
|
||||
<WrapPanel>\n
|
||||
\t<antd:Spin Size="Small" Margin="0 0 16 16" />\n
|
||||
\t<antd:Spin Margin="0 0 16 16" />\n
|
||||
\t<antd:Spin Size="Large" Margin="0 0 16 16" />\n
|
||||
\t<antd:Spin Size="Small" Margin="0 0 16 16" />\n
|
||||
\t<antd:Spin Margin="0 0 16 16" />\n
|
||||
\t<antd:Spin Size="Large" Margin="0 0 16 16" />\n
|
||||
</WrapPanel>
|
||||
</antd:CodeBox.Code>
|
||||
</antd:CodeBox>
|
||||
@@ -124,28 +125,28 @@
|
||||
<StackPanel>
|
||||
<WrapPanel>
|
||||
<antd:Spin Spinning="{Binding IsChecked, Mode=OneWay, ElementName=SwitchOne}">
|
||||
<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />
|
||||
<antd:Alert Description="Further details about the context of this alert." Message="Alert message title" />
|
||||
</antd:Spin>
|
||||
</WrapPanel>
|
||||
<WrapPanel Margin="0 16 0 0">
|
||||
<WrapPanel Margin="0,16,0,0">
|
||||
<Label Content="Loading state:" />
|
||||
<antd:Switch x:Name="SwitchOne" IsChecked="True" />
|
||||
<antd:Switch IsChecked="True" x:Name="SwitchOne" />
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</antd:CodeBox.Content>
|
||||
<antd:CodeBox.Code>
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntdWpf"\n\n
|
||||
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />\n\n
|
||||
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"\n\n
|
||||
<StackPanel>\n
|
||||
\t<WrapPanel>\n
|
||||
\t\t<antd:Spin Spinning="{Binding IsChecked, Mode=OneWay, ElementName=SwitchOne}">\n
|
||||
\t\t\t<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />\n
|
||||
\t\t</antd:Spin>\n
|
||||
\t</WrapPanel>\n
|
||||
\t<WrapPanel Margin="0 16 0 0">\n
|
||||
\t\t<Label Content="Loading state:" />\n
|
||||
\t\t<antd:Switch x:Name="SwitchOne" />\n
|
||||
\t</WrapPanel>\n
|
||||
\t<WrapPanel>\n
|
||||
\t\t<antd:Spin Spinning="{Binding IsChecked, Mode=OneWay, ElementName=SwitchOne}">\n
|
||||
\t\t\t<antd:Alert Message="Alert message title" Description="Further details about the context of this alert." />\n
|
||||
\t\t</antd:Spin>\n
|
||||
\t</WrapPanel>\n
|
||||
\t<WrapPanel Margin="0 16 0 0">\n
|
||||
\t\t<Label Content="Loading state:" />\n
|
||||
\t\t<antd:Switch x:Name="SwitchOne" />\n
|
||||
\t</WrapPanel>\n
|
||||
</StackPanel>
|
||||
</antd:CodeBox.Code>
|
||||
</antd:CodeBox>
|
||||
|
||||
Reference in New Issue
Block a user