WinMain.xaml
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<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"
xmlns:controls="clr-namespace:HHECS.Controls"
mc:Ignorable="d"
Title="华恒ECS" Height="450" Width="800" Loaded="Window_Loaded" Closed="Window_Closed" Background="#FF293955">
<DockPanel>
<Menu x:Name="MenuMain" DockPanel.Dock="Top" MenuItem.Click="MenuMain_Checked" Background="#FFD6DBE9">
<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>
<ToolBar DockPanel.Dock="Top" Background="#FFCFD6E5" FontSize="12">
<Button>更改密码</Button>
</ToolBar>
<StatusBar DockPanel.Dock="Bottom" Background="#FF007ACC">
<Label x:Name="Lab1" Foreground="White"></Label>
</StatusBar>
<Grid>
<TabControl >
<TabItem Header="主页">
<Grid x:Name="GridMain">
</Grid>
</TabItem>
</TabControl>
</Grid>
</DockPanel>
</win:BaseWindow>