更新整理
This commit is contained in:
138
WPFluent.Gallery/Views/Pages/TextPage.xaml
Normal file
138
WPFluent.Gallery/Views/Pages/TextPage.xaml
Normal file
@@ -0,0 +1,138 @@
|
||||
<Page
|
||||
x:Class="WPFluent.Gallery.Views.TextPage"
|
||||
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:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
mc:Ignorable="d"
|
||||
controls:PageControlDocumentation.Show="False"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Title="TextPage"
|
||||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
||||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}">
|
||||
|
||||
<ui:StackPanel Spacing="5">
|
||||
<GroupBox Header="A simple TextBlock.">
|
||||
<TextBlock Text="I am a text block." />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="A TextBlock with style applied.">
|
||||
<TextBlock
|
||||
FontFamily="Comic Sans MS"
|
||||
FontStyle="Italic"
|
||||
Text="I am a styled TextBlock." />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="A TextBlock with inline text elements.">
|
||||
<TextBlock FontSize="14">
|
||||
<Run
|
||||
FontFamily="Times New Roman"
|
||||
Foreground="DarkGray"
|
||||
Text="Text in a TextBlock doesn't have to be a simple string." />
|
||||
<LineBreak />
|
||||
<Span>
|
||||
<Run Text="Text can be" />
|
||||
<Run Text=" " />
|
||||
<Bold>
|
||||
<Run Text="bold" />
|
||||
</Bold>
|
||||
<Run Text=" " />
|
||||
<Run Text=" ," />
|
||||
<Run Text=" " />
|
||||
<Italic>
|
||||
<Run Text="italic" />
|
||||
</Italic>
|
||||
<Run Text=" " />
|
||||
<Run Text=" , or" />
|
||||
<Run Text=" " />
|
||||
<Underline>
|
||||
<Run Text="underlined" />
|
||||
</Underline>
|
||||
<Run Text=" " />
|
||||
<Run Text=" ." />
|
||||
</Span>
|
||||
</TextBlock>
|
||||
</GroupBox>
|
||||
<GroupBox Header="A simple TextBox.">
|
||||
<TextBox />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="A WPF UI TextBox.">
|
||||
<ui:TextBox PlaceholderText="Type something..." />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="A multi-line TextBox.">
|
||||
<ui:TextBox
|
||||
MinHeight="100"
|
||||
PlaceholderText="Type something..."
|
||||
TextWrapping="Wrap" />
|
||||
</GroupBox>
|
||||
<GroupBox Header="A simple RichTextBox">
|
||||
<RichTextBox />
|
||||
</GroupBox>
|
||||
<GroupBox Header="A simple PasswordBox.">
|
||||
<PasswordBox />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="WPF UI PasswordBox.">
|
||||
<ui:PasswordBox
|
||||
Icon="{ui:SymbolIcon Password24}"
|
||||
PlaceholderEnabled="True"
|
||||
PlaceholderText="Password..." />
|
||||
</GroupBox>
|
||||
<GroupBox Header="WPF UI NumberBox.">
|
||||
<ui:NumberBox PlaceholderText="Enter your age" />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="WPF UI NumberBox with icon.">
|
||||
<ui:NumberBox
|
||||
Value="1.50"
|
||||
Icon="{ui:SymbolIcon NumberSymbolSquare24}"
|
||||
LargeChange="2.25"
|
||||
Maximum="10"
|
||||
Minimum="-10"
|
||||
PlaceholderText="Enter your age"
|
||||
SmallChange="0.25"
|
||||
SpinButtonPlacementMode="Hidden" />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="WPF UI NumberBox without decimal places.">
|
||||
<ui:NumberBox
|
||||
Value="12"
|
||||
Icon="{ui:SymbolIcon NumberSymbolSquare24}"
|
||||
MaxDecimalPlaces="0"
|
||||
Maximum="100"
|
||||
Minimum="0"
|
||||
PlaceholderText="Enter your age"
|
||||
SmallChange="1" />
|
||||
</GroupBox>
|
||||
<GroupBox Header="A simple Label.">
|
||||
<Label Content="I am a Label." />
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="A Label for TextBox.">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Content="I am a Label of the TextBox below." />
|
||||
<!-- Target="{Binding ElementName=TextBoxForLabel}" -->
|
||||
<TextBox Grid.Row="1" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Header="WPF UI AutoSuggestBox.">
|
||||
<ui:AutoSuggestBox
|
||||
Icon="{ui:SymbolIcon Search24}"
|
||||
OriginalItemsSource="{Binding ViewModel.AutoSuggestBoxSuggestions, Mode=OneWay}"
|
||||
PlaceholderText="Search..." />
|
||||
</GroupBox>
|
||||
<!--<controls:GalleryNavigationPresenter
|
||||
Grid.Row="1"
|
||||
Margin="0, 10"
|
||||
ItemsSource="{Binding ViewModel.NavigationCards, Mode=OneWay}" />-->
|
||||
</ui:StackPanel>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user