WinMain.xaml 3.77 KB
<win:BaseWindow
    xmlns:win="clr-namespace:HHECS.View.Win"
        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:model ="clr-namespace:HHECS.Model;assembly=HHECS.Model"
        x:Class="HHECS.View.WinMain"
    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 Children}">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding MenuName}"/>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </Menu.ItemTemplate>
        </Menu>
        <ToolBar DockPanel.Dock="Top" Background="#FFCFD6E5" FontSize="12">
            <Button Content="更改密码"/>
            <Button x:Name="Btn_BeginExcute" Click="Btn_BeginExcute_Click" Content="开始处理"/>
            <Button x:Name="Btn_EndExcute" Click="Btn_EndExcute_Click" IsEnabled="False" Content="停止处理"/>
        </ToolBar>

        <StatusBar DockPanel.Dock="Bottom" Background="#FF007ACC">
            <Label x:Name="Lab1" Foreground="White"/>
        </StatusBar>
        <Grid>
            <TabControl >
                <TabItem Header="主页">
                    <Grid x:Name="GridMain" >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="35"/>
                            <RowDefinition />
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="30*"/>
                            <ColumnDefinition Width="70*"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="湘 电 WCS 监 控" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" FontWeight="Bold"/>
                        <Grid Grid.Row="1" Grid.RowSpan="2" Grid.Column="1">
                            <!--<Grid.ColumnDefinitions>
                                <ColumnDefinition Width="20*" ></ColumnDefinition>
                                <ColumnDefinition Width="60*"></ColumnDefinition>
                                <ColumnDefinition Width="20*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>-->

                            <ScrollViewer Grid.Column="1" x:Name="StockerView" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto"/>
                        </Grid>
                        <GridSplitter BorderThickness="5"/>
                        <Grid Grid.Column="0" Grid.Row="1" Grid.RowSpan="3">
                            <Border BorderBrush="SteelBlue" BorderThickness="0,0,1,0">
                                <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
                                    <StackPanel x:Name="SPMain" HorizontalAlignment="Left" VerticalAlignment="Top"  Orientation="Vertical" >

                                    </StackPanel>
                                </ScrollViewer>
                            </Border>
                        </Grid>
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
    </DockPanel>
</win:BaseWindow>