79 lines
3.1 KiB
XML
79 lines
3.1 KiB
XML
<Window
|
|
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">
|
|
<!-- 主窗口背景色,这是拟态风格的基础 -->
|
|
<Window.Resources>
|
|
<!--<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/NeuWPFTest;component/ButtonStyles.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>-->
|
|
</Window.Resources>
|
|
<!--<lu:WindowAssist.TitleBar>
|
|
<Menu>
|
|
<MenuItem Header="Help">
|
|
<MenuItem Header="About" />
|
|
</MenuItem>
|
|
</Menu>
|
|
</lu:WindowAssist.TitleBar>-->
|
|
<Grid>
|
|
<ScrollViewer
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Grid.Row="1">
|
|
<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>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Window> |