mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-25 02:46:38 +08:00
Demos
This commit is contained in:
38
Demos/AIStudio.Wpf.DiagramDesigner.Demo/MainWindow.xaml
Normal file
38
Demos/AIStudio.Wpf.DiagramDesigner.Demo/MainWindow.xaml
Normal file
@@ -0,0 +1,38 @@
|
||||
<ac:WindowBase x:Class="AIStudio.Wpf.DiagramDesigner.Demo.MainWindow"
|
||||
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:ac="https://gitee.com/akwkevin/AI-wpf-controls"
|
||||
mc:Ignorable="d"
|
||||
Title="AIStudio.Wpf.DiagramDesigner.Demo"
|
||||
Icon="A.ico"
|
||||
Identifier="RootWindow"
|
||||
Style="{StaticResource AIStudio.Styles.WindowBase}"
|
||||
Height="800" Width="1000">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" MinWidth="100" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--<ListBox x:Name="listbox" SelectionChanged="ListBox_SelectionChanged">
|
||||
|
||||
</ListBox>-->
|
||||
<TreeView x:Name="treeview"
|
||||
Style="{StaticResource AIStudio.Styles.TreeView.Menu}"
|
||||
SelectedItemChanged="treeview_SelectedItemChanged">
|
||||
<TreeView.ItemTemplate>
|
||||
<HierarchicalDataTemplate DataType="{x:Type ac:HamburgerTreeMenuGlyphItem}" ItemsSource="{Binding Path=Children}">
|
||||
<Grid Margin="5">
|
||||
<TextBlock VerticalAlignment="Center" Text="{Binding Title}" />
|
||||
</Grid>
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.ItemTemplate>
|
||||
</TreeView>
|
||||
<GridSplitter Width="2"
|
||||
VerticalAlignment="Stretch" />
|
||||
<ContentControl x:Name="ContentControl"
|
||||
Grid.Column="1"
|
||||
Margin="0" />
|
||||
</Grid>
|
||||
</ac:WindowBase>
|
||||
Reference in New Issue
Block a user