更新
This commit is contained in:
85
WPFDark.Gallery/MainWindow.xaml
Normal file
85
WPFDark.Gallery/MainWindow.xaml
Normal file
@@ -0,0 +1,85 @@
|
||||
<wpf:BiaWindow x:Class="WPFDark.Gallery.MainWindow"
|
||||
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:local="clr-namespace:WPFDark.Gallery"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:wpf="https://github.com/WPFDark"
|
||||
Width="800"
|
||||
wpf:Design.Background="{DynamicResource BackgroundBackgroundBrushKey}"
|
||||
Style="{DynamicResource WPFDarkStyle}"
|
||||
Height="450"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow">
|
||||
<wpf:BiaWindow.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<wpf:ControlsDictionary />
|
||||
<wpf:ThemesDictionary />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style TargetType="{x:Type wpf:BiaTextBox}">
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="Margin" Value="0,4,0,0" />
|
||||
</Style>
|
||||
<Style TargetType="{x:Type wpf:BiaComboBox}">
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="Margin" Value="0,4,0,0" />
|
||||
</Style>
|
||||
<Style TargetType="{x:Type wpf:BiaButton}">
|
||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||
<Setter Property="Margin" Value="0,4,0,0" />
|
||||
</Style>
|
||||
<DataTemplate x:Key="ListItemTemplateStyle">
|
||||
<wpf:BiaTextBlock Text="{Binding}" />
|
||||
</DataTemplate>
|
||||
<DataTemplate x:Key="ItemIndexTemplateStyle">
|
||||
<wpf:BiaTextBlock Text="{Binding Index}" />
|
||||
</DataTemplate>
|
||||
<DataTemplate x:Key="ItemNameTemplateStyle">
|
||||
<wpf:BiaTextBlock Text="{Binding Name}" />
|
||||
</DataTemplate>
|
||||
</ResourceDictionary>
|
||||
</wpf:BiaWindow.Resources>
|
||||
<StackPanel>
|
||||
<TextBox Width="200" />
|
||||
<TextBlock Text="Test" />
|
||||
<PasswordBox />
|
||||
<!-- Fix for XDG0066: Ensure the BiaColorPicker control is properly initialized -->
|
||||
<wpf:BiaColorPicker />
|
||||
<Button Content="按钮" />
|
||||
<ComboBox>
|
||||
<ComboBoxItem Content="First" />
|
||||
<ComboBoxItem Content="Second" />
|
||||
<ComboBoxItem Content="Third" />
|
||||
</ComboBox>
|
||||
<CheckBox Content="CheckBox" />
|
||||
<TabControl>
|
||||
<TabItem Header="First" />
|
||||
<TabItem Header="Second" />
|
||||
<TabItem Header="Third" />
|
||||
</TabControl>
|
||||
<ListBox>
|
||||
<ListBoxItem Content="First" />
|
||||
<ListBoxItem Content="Second" />
|
||||
<ListBoxItem Content="Third" />
|
||||
</ListBox>
|
||||
<ListView Width="200"
|
||||
Height="200"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
ItemsSource="{Binding Areas, Mode=OneTime}">
|
||||
<ListView.View>
|
||||
<GridView>
|
||||
<GridViewColumn Width="50"
|
||||
CellTemplate="{StaticResource ItemIndexTemplateStyle}"
|
||||
Header="番号" />
|
||||
<GridViewColumn Width="120"
|
||||
CellTemplate="{StaticResource ItemNameTemplateStyle}"
|
||||
Header="名前" />
|
||||
</GridView>
|
||||
</ListView.View>
|
||||
</ListView>
|
||||
</StackPanel>
|
||||
</wpf:BiaWindow>
|
||||
Reference in New Issue
Block a user