WinMain.xaml
1.3 KB
<win:BaseWindow
xmlns:win="clr-namespace:HHECS.View.Win" x:Class="HHECS.View.WinMain"
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:HHECS.View"
xmlns:model ="clr-namespace:HHECS.Model;assembly=HHECS.Model"
mc:Ignorable="d"
Title="华恒ECS" Height="450" Width="800" Loaded="Window_Loaded" Closed="Window_Closed">
<DockPanel>
<Menu x:Name="MenuMain" DockPanel.Dock="Top" MenuItem.Click="MenuMain_Checked">
<Menu.ItemTemplate>
<HierarchicalDataTemplate DataType="{x:Type model:MenuOperation}" ItemsSource="{Binding Path=Children}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding MenuName}"></TextBlock>
</StackPanel>
</HierarchicalDataTemplate>
</Menu.ItemTemplate>
</Menu>
<StatusBar DockPanel.Dock="Bottom">
<Label x:Name="Lab1"></Label>
</StatusBar>
<Grid>
</Grid>
</DockPanel>
</win:BaseWindow>