Files
ShrlAlgoToolkit/SyminUI/SyminViewTest/ControlTestWindow.xaml

45 lines
1.9 KiB
Plaintext
Raw Normal View History

2025-07-11 09:20:23 +08:00
<Window x:Class="SyminViewTest.ControlTestWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SyminViewTest"
xmlns:sv ="clr-namespace:SyminUI.Controls;assembly=SyminUI"
xmlns:svd ="clr-namespace:SyminUI.Controls.Decorations;assembly=SyminUI"
xmlns:se="clr-namespace:SyminUI.Effects;assembly=SyminUI"
mc:Ignorable="d"
Title="Custom Control Test"
Style="{StaticResource Window.Normal}"
Height="400" Width="440">
<StackPanel Orientation="Vertical"
Background="{StaticResource Background.Main}">
<sv:PropertyField PropertyName="属性" PropertyValue="123" Margin="6,0"/>
<sv:PropertyField PropertyName="属性x" PropertyValue="154" Margin="6,0"/>
<sv:EditableTreeView x:Name="myTreeView">
<sv:EditableTreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Children}">
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding ItemName}"/>
<Button Content="按钮"/>
</StackPanel>
</HierarchicalDataTemplate>
</sv:EditableTreeView.ItemTemplate>
</sv:EditableTreeView>
<TreeView x:Name="OldTreeView">
<TreeView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding ItemName}"/>
</DataTemplate>
</TreeView.ItemTemplate>
</TreeView>
<TreeViewItem Header="TreeItem"/>
<ItemsControl x:Name="testItemsControl"></ItemsControl>
</StackPanel>
</Window>