Files
ShrlAlgoToolkit/ShrlAlgo.Addin.Test/FluentWindow.xaml

79 lines
3.5 KiB
Plaintext
Raw Normal View History

<ui:FluentWindow
x:Class="ShrlAlgo.Addin.Test.FluentWindow"
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:ShrlAlgo.Addin.Test"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ws="https://schemas.elecho.dev/wpfsuite"
xmlns:wsfd="https://schemas.elecho.dev/wpfsuite-design/fluent"
Title="FluentWindow"
Width="800"
Height="450"
ExtendsContentIntoTitleBar="True"
WindowBackdropType="Mica"
mc:Ignorable="d">
<!--
WindowOption.Backdrop="Mica"
WindowOption.IsDarkMode="True"
Background="Transparent"
-->
<Window.Resources>
<!--<ResourceDictionary Source="pack://application:,,,/RvAddinTest;component/FluentStyles.xaml" />-->
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Light" />
<ui:ControlsDictionary />
<!--<wsfd:FluentResources />-->
<!--<ResourceDictionary Source="pack://application:,,,/EleCho.WpfSuite.FluentDesign;component/Themes/Dark.xaml" />
<ResourceDictionary Source="pack://application:,,,/EleCho.WpfSuite.FluentDesign;component/Styles/TextBoxResources.xaml" />
<ResourceDictionary Source="pack://application:,,,/EleCho.WpfSuite.FluentDesign;component/Styles/PasswordBoxResources.xaml" />
<ResourceDictionary Source="pack://application:,,,/EleCho.WpfSuite.FluentDesign;component/Styles/CommonResources.xaml" />-->
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<DockPanel>
<ui:TitleBar Title="测试" DockPanel.Dock="Top" />
<ScrollViewer Margin="12">
<StackPanel>
<TextBox Width="200" />
<PasswordBox />
<Button Click="Button_Click" Content="按钮" />
<ToggleButton Content="Tog" />
<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>
<Menu>
<MenuItem Header="First" />
<MenuItem Header="Second" />
<MenuItem Header="Third" />
</Menu>
<StackPanel>
<TextBlock Text="WrapPanel with spacing" />
<ItemsControl ItemsSource="{Binding TestItems}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</StackPanel>
</StackPanel>
</ScrollViewer>
</DockPanel>
</ui:FluentWindow>