功能更新
This commit is contained in:
81
MelskinTest/ControlTestWindow.xaml
Normal file
81
MelskinTest/ControlTestWindow.xaml
Normal file
@@ -0,0 +1,81 @@
|
||||
<ms:MelWindow
|
||||
Height="600"
|
||||
Icon="/Resources/Images/ImageTest.png"
|
||||
Title="测试"
|
||||
Width="800"
|
||||
d:DesignHeight="800"
|
||||
mc:Ignorable="d"
|
||||
x:Class="VibeWPFTest.ControlTestWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:dataModel="clr-namespace:VibeWPFTest.DataModel"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ms="https://github.com/ShrlAlgo/Melskin"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<!-- 主窗口背景色,这是拟态风格的基础 -->
|
||||
<ms:MelWindow.Resources>
|
||||
<dataModel:DataGridDemo x:Key="Dgd" />
|
||||
<!--<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/NeuWPFTest;component/ButtonStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>-->
|
||||
</ms:MelWindow.Resources>
|
||||
<!--<lu:WindowAssist.TitleBar>
|
||||
<Menu>
|
||||
<MenuItem Header="Help">
|
||||
<MenuItem Header="About" />
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</lu:WindowAssist.TitleBar>-->
|
||||
<Grid>
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<ms:StackPanel Background="{DynamicResource BackgroundLayoutBrush}" Spacing="10">
|
||||
<ms:PropertyField
|
||||
Margin="6,0"
|
||||
PropertyName="属性"
|
||||
PropertyValue="123" />
|
||||
<ms: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>
|
||||
<ms:NeuDataGrid
|
||||
BindableSelectedItems="{Binding SelectedDataGridItems, Mode=TwoWay}"
|
||||
DataContext="{StaticResource Dgd}"
|
||||
ItemsSource="{Binding DataCollection}"
|
||||
Margin="4"
|
||||
x:Name="NeuDG1" />
|
||||
<DataGrid
|
||||
DataContext="{StaticResource Dgd}"
|
||||
ItemsSource="{Binding DataCollection}"
|
||||
Margin="4" />
|
||||
<DataGrid
|
||||
DataContext="{StaticResource Dgd}"
|
||||
ItemsSource="{Binding DataCollection}"
|
||||
Margin="4"
|
||||
Style="{StaticResource CheckBoxHeadDataGridStyle}"
|
||||
x:Name="DataGridCheckBox" />
|
||||
|
||||
</ms:StackPanel>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</ms:MelWindow>
|
||||
Reference in New Issue
Block a user