2025-12-28 11:47:54 +08:00
|
|
|
<n:NeoWindow
|
2026-01-02 17:30:30 +08:00
|
|
|
x:Class="VariaStudioTest.ControlTestWindow"
|
2025-08-24 13:49:55 +08:00
|
|
|
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"
|
2026-01-02 17:30:30 +08:00
|
|
|
xmlns:dataModel="clr-namespace:VariaStudioTest.DataModel"
|
2025-08-24 13:49:55 +08:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-12-28 11:47:54 +08:00
|
|
|
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
2025-12-23 21:35:54 +08:00
|
|
|
Title="测试"
|
|
|
|
|
Width="800"
|
|
|
|
|
Height="600"
|
2025-12-28 11:47:54 +08:00
|
|
|
d:DesignHeight="1200"
|
2025-12-23 21:35:54 +08:00
|
|
|
Icon="/Resources/Images/ImageTest.png"
|
|
|
|
|
mc:Ignorable="d">
|
2025-08-24 13:49:55 +08:00
|
|
|
<!-- 主窗口背景色,这是拟态风格的基础 -->
|
2025-12-28 11:47:54 +08:00
|
|
|
<n: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>-->
|
2025-12-28 11:47:54 +08:00
|
|
|
</n:NeoWindow.Resources>
|
2025-08-24 13:49:55 +08:00
|
|
|
<!--<lu:WindowAssist.TitleBar>
|
|
|
|
|
<Menu>
|
|
|
|
|
<MenuItem Header="Help">
|
|
|
|
|
<MenuItem Header="About" />
|
|
|
|
|
</MenuItem>
|
|
|
|
|
</Menu>
|
|
|
|
|
</lu:WindowAssist.TitleBar>-->
|
|
|
|
|
<Grid>
|
2025-12-28 11:47:54 +08:00
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
|
|
|
<n:StackPanel Background="{DynamicResource BackgroundLayoutBrush}" Spacing="10">
|
|
|
|
|
<n:PropertyField
|
|
|
|
|
Margin="6,0"
|
|
|
|
|
PropertyName="属性"
|
|
|
|
|
PropertyValue="123" />
|
|
|
|
|
<n:PropertyField
|
|
|
|
|
Margin="6,0"
|
|
|
|
|
PropertyName="属性x"
|
|
|
|
|
PropertyValue="154" />
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
<Button
|
|
|
|
|
Content="Button"
|
|
|
|
|
Style="{StaticResource EmbossButtonStyle}"
|
|
|
|
|
ToolTip="测试"
|
|
|
|
|
ToolTipService.Placement="Top" />
|
|
|
|
|
<Button
|
|
|
|
|
Content="Button"
|
|
|
|
|
Style="{StaticResource EmbossButtonStyle}"
|
|
|
|
|
ToolTip="测试"
|
|
|
|
|
ToolTipService.Placement="Right" />
|
|
|
|
|
<Button
|
|
|
|
|
Content="Button"
|
|
|
|
|
Style="{StaticResource EmbossButtonStyle}"
|
|
|
|
|
ToolTip="测试"
|
|
|
|
|
ToolTipService.InitialShowDelay="0"
|
|
|
|
|
ToolTipService.Placement="Bottom" />
|
|
|
|
|
<TextBox Style="{StaticResource SlotTextBoxStyle}" Text="TextBox" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
<n: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}" />
|
2026-01-01 10:02:59 +08:00
|
|
|
<n:StackPanel Width="600" HorizontalAlignment="Center">
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
<TextBox x:Name="PrivateKeyTextBox" n:InputAssist.Prefix="私钥:" />
|
|
|
|
|
<TextBox x:Name="PublicKeyTextBox" n:InputAssist.Prefix="公钥:" />
|
|
|
|
|
<Button Click="GenerateKeyClick" Content="计算公私密钥" />
|
|
|
|
|
<Button Click="SaveKeysClick" Content="保存公、私密钥" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
<UniformGrid>
|
|
|
|
|
<TextBox x:Name="MachineCodeTextBox" n:InputAssist.Prefix="机器码:" />
|
|
|
|
|
<Button Click="MachineCodeClick" Content="获取本机机器码" />
|
|
|
|
|
<n:FlexibleRowPanel LayoutMode="Auto">
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="授权到期日期:" />
|
|
|
|
|
<DatePicker x:Name="ExpiryDatePicker" n:FlexibleRowPanel.IsFill="True" />
|
|
|
|
|
</n:FlexibleRowPanel>
|
|
|
|
|
<Button Click="LicenseClick" Content="获取激活码" />
|
|
|
|
|
</UniformGrid>
|
2025-12-23 21:35:54 +08:00
|
|
|
|
2026-01-01 10:02:59 +08:00
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
<TextBox x:Name="LicenseTextBox" n:InputAssist.Prefix="激活码:" />
|
|
|
|
|
<Button Click="ActivateClick" Content="激活授权" />
|
|
|
|
|
<Button Click="SaveLicenseClick" Content="保存激活码" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
<Button Click="ValidateClick" Content="授权验证" />
|
|
|
|
|
<Button Click="RemoveLicenseClick" Content="移除授权" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
</n:StackPanel>
|
2025-12-28 11:47:54 +08:00
|
|
|
</n:StackPanel>
|
|
|
|
|
</ScrollViewer>
|
2025-08-24 13:49:55 +08:00
|
|
|
</Grid>
|
2025-12-28 11:47:54 +08:00
|
|
|
</n:NeoWindow>
|