更新
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
<Page
|
||||
x:Class="WPFluent.Gallery.Views.Pages.LayoutPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:models="clr-namespace:WPFluent.Gallery.Models"
|
||||
xmlns:pages="clr-namespace:WPFluent.Gallery.Views.Pages"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent" xmlns:pages1="clr-namespace:WPFluent.Gallery.ViewModels.Pages"
|
||||
mc:Ignorable="d"
|
||||
d:DataContext="{d:DesignInstance pages:LayoutPage,
|
||||
IsDesignTimeCreatable=False}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Title="DialogsAndFlyoutsPage">
|
||||
<Page x:Class="WPFluent.Gallery.Views.Pages.LayoutPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:models="clr-namespace:WPFluent.Gallery.Models"
|
||||
xmlns:pages="clr-namespace:WPFluent.Gallery.Views.Pages"
|
||||
xmlns:pages1="clr-namespace:WPFluent.Gallery.ViewModels.Pages"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
mc:Ignorable="d"
|
||||
d:DataContext="{d:DesignInstance pages:LayoutPage, IsDesignTimeCreatable=False}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Title="DialogsAndFlyoutsPage">
|
||||
|
||||
<StackPanel>
|
||||
<GroupBox Margin="0" Header="An Expander with text in the header and content areas">
|
||||
@@ -21,11 +20,10 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Expander
|
||||
Grid.Column="0"
|
||||
Content="This is in the content"
|
||||
Header="This text is in the header" />
|
||||
<!-- TODO: ExpandDirection -->
|
||||
<Expander Grid.Column="0"
|
||||
Content="This is in the content"
|
||||
Header="This text is in the header" />
|
||||
<!-- TODO: ExpandDirection -->
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -46,52 +44,45 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:TextBlock
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
FontSize="16"
|
||||
FontTypography="Body"
|
||||
Text="This is a header text" />
|
||||
<ui:ToggleSwitch
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,16,0"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
<ui:TextBlock
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text" />
|
||||
<ui:TextBlock Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
FontSize="16"
|
||||
FontTypography="Body"
|
||||
Text="This is a header text" />
|
||||
<ui:ToggleSwitch Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,16,0"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
<ui:TextBlock Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text" />
|
||||
</Grid>
|
||||
</ui:CardExpander.Header>
|
||||
<StackPanel Margin="24,0.5,24,0">
|
||||
<ui:CardControl Header="This is an item" Padding="20,10,20,10">
|
||||
<ui:ToggleSwitch
|
||||
HorizontalContentAlignment="Left"
|
||||
IsEnabled="True"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
<ui:ToggleSwitch HorizontalContentAlignment="Left"
|
||||
IsEnabled="True"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
</ui:CardControl>
|
||||
<ui:CardControl
|
||||
Margin="0,0.5,0,0"
|
||||
Icon="{ui:SymbolIcon FlashSettings24}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl Margin="0,0.5,0,0"
|
||||
Icon="{ui:SymbolIcon FlashSettings24}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl.Header>
|
||||
<StackPanel>
|
||||
<ui:TextBlock
|
||||
Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is a header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock
|
||||
Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is a header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
</StackPanel>
|
||||
</ui:CardControl.Header>
|
||||
<ui:DropDownButton Content="Hello" Icon="{ui:SymbolIcon Fluent24}">
|
||||
@@ -108,7 +99,7 @@
|
||||
</ui:CardControl>
|
||||
</StackPanel>
|
||||
</ui:CardExpander>
|
||||
<!-- TODO: ExpandDirection -->
|
||||
<!-- TODO: ExpandDirection -->
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Header="A card control with a header and a button.">
|
||||
@@ -131,30 +122,26 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:CardControl
|
||||
Margin="4"
|
||||
Icon="{ui:SymbolIcon FlashSettings24}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl Margin="4"
|
||||
Icon="{ui:SymbolIcon FlashSettings24}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl.Header>
|
||||
<StackPanel>
|
||||
<ui:TextBlock
|
||||
Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock
|
||||
Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
</StackPanel>
|
||||
</ui:CardControl.Header>
|
||||
<ui:ToggleSwitch
|
||||
HorizontalContentAlignment="Left"
|
||||
IsEnabled="True"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
<ui:ToggleSwitch HorizontalContentAlignment="Left"
|
||||
IsEnabled="True"
|
||||
OffContent="Off"
|
||||
OnContent="On" />
|
||||
</ui:CardControl>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
@@ -165,23 +152,20 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:CardControl
|
||||
Margin="4"
|
||||
Icon="{ui:ImageIcon pack://application:\,\,\,/WPFluent.Gallery;component/wpfui.png}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl Margin="4"
|
||||
Icon="{ui:ImageIcon 'pack://application:,,,/WPFluent.Gallery;component/wpfui.png'}"
|
||||
Padding="20,10,20,10">
|
||||
<ui:CardControl.Header>
|
||||
<StackPanel>
|
||||
<ui:TextBlock
|
||||
Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock
|
||||
Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
</StackPanel>
|
||||
</ui:CardControl.Header>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
@@ -199,7 +183,7 @@
|
||||
选择剖面框
|
||||
<ui:DropDownButton.Flyout>
|
||||
<ContextMenu>
|
||||
<MenuItem d:DataContext="{d:DesignInstance Type=pages1:LayoutViewModel}" Command="{Binding ShowDialogCommand}" Header="选择剖面框" />
|
||||
<MenuItem Command="{Binding ShowDialogCommand}" Header="选择剖面框" />
|
||||
<MenuItem Header="框选剖面框" />
|
||||
</ContextMenu>
|
||||
</ui:DropDownButton.Flyout>
|
||||
@@ -214,14 +198,13 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:CardAction Grid.Column="0" Icon="{ui:ImageIcon pack://application:\,\,\,/WPFluent.Gallery;component/wpfui.png}">
|
||||
<ui:CardAction Grid.Column="0" Icon="{ui:ImageIcon 'pack://application:,,,/WPFluent.Gallery;component/wpfui.png'}">
|
||||
<StackPanel>
|
||||
<ui:TextBlock
|
||||
Margin="0"
|
||||
FontTypography="Body"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Margin="0"
|
||||
FontTypography="Body"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
</StackPanel>
|
||||
</ui:CardAction>
|
||||
</Grid>
|
||||
@@ -232,19 +215,19 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:CardAction Grid.Column="0" Icon="{ui:SymbolIcon DocumentEdit20, FontSize=43, Filled=False}">
|
||||
<ui:CardAction Grid.Column="0" Icon="{ui:SymbolIcon DocumentEdit20,
|
||||
FontSize=43,
|
||||
Filled=False}">
|
||||
<StackPanel>
|
||||
<ui:TextBlock
|
||||
Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock
|
||||
Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Margin="0"
|
||||
FontTypography="BodyStrong"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Text="This is the header text"
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
<ui:TextBlock Appearance="Secondary"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="This is a description text."
|
||||
TextWrapping="WrapWithOverflow" />
|
||||
</StackPanel>
|
||||
</ui:CardAction>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user