You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
4.8 KiB
XML
79 lines
4.8 KiB
XML
<Window x:Class="Admin.Core.Wpf.Views.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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
mc:Ignorable="d"
|
|
Title="澳柯玛物流控制系统"
|
|
MinHeight="700" MinWidth="1100"
|
|
Background="#1152AC"
|
|
WindowStartupLocation="CenterScreen" WindowState="Maximized" WindowStyle="None"
|
|
>
|
|
<!--<Window.Background>
|
|
<ImageBrush ImageSource="/Assets/Images/bg.jpg"/>
|
|
</Window.Background>-->
|
|
<Border CornerRadius="5">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="6*"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<DockPanel Grid.Row="0" VerticalAlignment="Top" Background="Red">
|
|
<StackPanel Height="100" >
|
|
<StackPanel.Background>
|
|
<ImageBrush Stretch="UniformToFill" ImageSource="/Assets/Images/headbg.png"/>
|
|
</StackPanel.Background>
|
|
<StackPanel HorizontalAlignment="Center" Margin="0 5 0 0" >
|
|
<TextBlock Text="澳柯玛生产控制系统" Margin="0" Foreground="White" FontSize="35" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
<WrapPanel HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0 -30 20 0">
|
|
<TextBlock x:Name="TestTB" Text="白班" VerticalAlignment="Center" Foreground="White" FontSize="15" />
|
|
<TextBlock Text="|" VerticalAlignment="Center" Foreground="White" FontSize="15" />
|
|
<TextBlock x:Name="loginUser" Text="李四" VerticalAlignment="Center" Foreground="White" FontSize="15" />
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
|
|
<DockPanel Grid.Row="1">
|
|
<!--<ScrollViewer x:Name="MainScrollViewer"
|
|
materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True">-->
|
|
<ContentControl Content="{Binding UserContent}" Height="auto" />
|
|
<!--</ScrollViewer>-->
|
|
</DockPanel>
|
|
|
|
<DockPanel Grid.Row="2" Background="#08408B">
|
|
<Border Margin="3" HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="1" Height="50" Orientation="Horizontal" Margin="5 0" HorizontalAlignment="Left">
|
|
<Button Content="首 页" Background="#4285DE" IsEnabled="False" Margin="5 0" />
|
|
<Button Content="键 盘" Background="#4285DE" x:Name="TabTip" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=TabTip}" />
|
|
<Button Content="最小化" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Width="100" Height="30" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
|
|
<Button Content="退 出" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Width="100" Height="30" Background="#FF0033" BorderBrush="#FF0033" Margin="0,0,10,0"/>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Height="50" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<!--<Border Width="30" Height="30" CornerRadius="15">
|
|
<Border.Background>
|
|
<ImageBrush x:Name="PlcStatusImage" ImageSource="/Assets/Images/Green.png"/>
|
|
</Border.Background>
|
|
</Border>
|
|
<TextBlock x:Name="DB" Text="数据库连接成功" VerticalAlignment="Center" Foreground="Green" FontSize="15" Margin="10,0"/>-->
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</DockPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Window>
|