Files
Shrlalgo.RvKits/NeoUI/NeoUITest/ControlTestWindow.xaml

91 lines
3.6 KiB
Plaintext
Raw Normal View History

2025-08-24 13:49:55 +08:00
<neu:NeoWindow
x:Class="NeoUITest.ControlTestWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2025-12-23 21:35:54 +08:00
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2025-08-24 13:49:55 +08:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2025-12-23 21:35:54 +08:00
xmlns:dataModel="clr-namespace:NeoUITest.DataModel"
2025-08-24 13:49:55 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:neu="https://github.com/ShrlAlgo/NeoUI"
xmlns:sys="clr-namespace:System;assembly=netfx.force.conflicts"
2025-12-23 21:35:54 +08:00
Title="测试"
Width="800"
Height="600"
d:Height="1200"
d:SizeToContent="WidthAndHeight"
Icon="/Resources/Images/ImageTest.png"
mc:Ignorable="d">
2025-08-24 13:49:55 +08:00
<!-- 主窗口背景色,这是拟态风格的基础 -->
<neu:NeoWindow.Resources>
2025-12-23 21:35:54 +08:00
<dataModel:DataGridDemo x:Key="Dgd" />
2025-08-24 13:49:55 +08:00
<!--<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/NeuWPFTest;component/ButtonStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>-->
</neu:NeoWindow.Resources>
<!--<lu:WindowAssist.TitleBar>
<Menu>
<MenuItem Header="Help">
<MenuItem Header="About" />
</MenuItem>
</Menu>
</lu:WindowAssist.TitleBar>-->
<Grid>
<neu:StackPanel Background="{DynamicResource BackgroundLayoutBrush}" Spacing="10">
<neu:PropertyField
2025-10-10 11:19:58 +08:00
Grid.Row="0"
Margin="6,0"
PropertyName="属性"
PropertyValue="123" />
2025-08-24 13:49:55 +08:00
<neu:PropertyField
2025-10-10 11:19:58 +08:00
Grid.Row="1"
Margin="6,0"
PropertyName="属性x"
PropertyValue="154" />
2025-08-24 13:49:55 +08:00
<UniformGrid
2025-10-10 11:19:58 +08:00
Grid.Row="6"
2025-12-23 21:35:54 +08:00
Margin="20"
HorizontalAlignment="Center">
2025-08-24 13:49:55 +08:00
<Button
2025-10-10 11:19:58 +08:00
Content="Button"
2025-12-23 21:35:54 +08:00
Style="{StaticResource EmbossButtonStyle}"
2025-10-10 11:19:58 +08:00
ToolTip="测试"
ToolTipService.Placement="Left" />
2025-08-24 13:49:55 +08:00
<Button
2025-10-10 11:19:58 +08:00
Content="Button"
2025-12-23 21:35:54 +08:00
Style="{StaticResource EmbossButtonStyle}"
2025-10-10 11:19:58 +08:00
ToolTip="测试"
ToolTipService.Placement="Top" />
2025-08-24 13:49:55 +08:00
<Button
2025-10-10 11:19:58 +08:00
Content="Button"
2025-12-23 21:35:54 +08:00
Style="{StaticResource EmbossButtonStyle}"
2025-10-10 11:19:58 +08:00
ToolTip="测试"
ToolTipService.Placement="Right" />
2025-08-24 13:49:55 +08:00
<Button
2025-10-10 11:19:58 +08:00
Content="Button"
2025-12-23 21:35:54 +08:00
Style="{StaticResource EmbossButtonStyle}"
2025-10-10 11:19:58 +08:00
ToolTip="测试"
ToolTipService.InitialShowDelay="0"
ToolTipService.Placement="Bottom" />
2025-12-23 21:35:54 +08:00
<TextBox Style="{StaticResource SlotTextBoxStyle}" Text="TextBox" />
2025-08-24 13:49:55 +08:00
</UniformGrid>
2025-12-23 21:35:54 +08:00
<neu:NeuDataGrid
x:Name="NeuDG1"
Margin="4"
BindableSelectedItems="{Binding SelectedDataGridItems, Mode=TwoWay}"
DataContext="{StaticResource Dgd}"
ItemsSource="{Binding DataCollection}" />
<DataGrid
Margin="4"
DataContext="{StaticResource Dgd}"
ItemsSource="{Binding DataCollection}" />
<DataGrid
x:Name="DataGridCheckBox"
Margin="4"
DataContext="{StaticResource Dgd}"
ItemsSource="{Binding DataCollection}"
Style="{StaticResource CheckBoxHeadDataGridStyle}" />
2025-08-24 13:49:55 +08:00
</neu:StackPanel>
</Grid>
</neu:NeoWindow>