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

72 lines
2.6 KiB
Plaintext
Raw Normal View History

2025-08-24 13:49:55 +08:00
<neu:NeoWindow
Height="600"
Icon="/Resources/Images/ImageTest.png"
Title="Custom Control Test"
Width="800"
d:Height="1200"
d:SizeToContent="WidthAndHeight"
mc:Ignorable="d"
x:Class="NeoUITest.ControlTestWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
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"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- 主窗口背景色,这是拟态风格的基础 -->
<neu:NeoWindow.Resources>
<!--<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
Grid.Row="0"
Margin="6,0"
PropertyName="属性"
PropertyValue="123" />
<neu:PropertyField
Grid.Row="1"
Margin="6,0"
PropertyName="属性x"
PropertyValue="154" />
<UniformGrid
Grid.Row="6"
HorizontalAlignment="Center"
Margin="20">
<Button
Content="Button"
Style="{StaticResource NeuButtonStyle}"
ToolTip="测试"
ToolTipService.Placement="Left" />
<Button
Content="Button"
Style="{StaticResource NeuButtonStyle}"
ToolTip="测试"
ToolTipService.Placement="Top" />
<Button
Content="Button"
Style="{StaticResource NeuButtonStyle}"
ToolTip="测试"
ToolTipService.Placement="Right" />
<Button
Content="Button"
Style="{StaticResource NeuButtonStyle}"
ToolTip="测试"
ToolTipService.InitialShowDelay="0"
ToolTipService.Placement="Bottom" />
<TextBox Style="{StaticResource NeuTextBox}" Text="TextBox" />
</UniformGrid>
</neu:StackPanel>
</Grid>
</neu:NeoWindow>