101 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			XML
		
	
	
	
			
		
		
	
	
			101 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			XML
		
	
	
	
<UserControl x:Class="DM_Weight.Views.EmergencyWindow"
 | 
						|
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
						|
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
						|
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 | 
						|
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
 | 
						|
             xmlns:local="clr-namespace:DM_Weight.Views"
 | 
						|
             mc:Ignorable="d"  
 | 
						|
             xmlns:pagination="clr-namespace:DM_Weight.Components.pagination"  
 | 
						|
             xmlns:prism="http://prismlibrary.com/"
 | 
						|
             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
						|
             xmlns:convert="clr-namespace:DM_Weight.Converter"
 | 
						|
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">
 | 
						|
    <Grid>
 | 
						|
        <Grid.RowDefinitions>
 | 
						|
            <RowDefinition Height="80"></RowDefinition>
 | 
						|
            <RowDefinition></RowDefinition>
 | 
						|
            <RowDefinition Height="Auto"></RowDefinition>
 | 
						|
        </Grid.RowDefinitions>
 | 
						|
        <Grid Background="#00bcd4">
 | 
						|
            <Grid.ColumnDefinitions>
 | 
						|
                <ColumnDefinition Width="Auto" />
 | 
						|
                <ColumnDefinition />
 | 
						|
            </Grid.ColumnDefinitions>
 | 
						|
            <Image Grid.Column="0" Margin="30 0 30 0" HorizontalAlignment="Left" Width="Auto" Height="26"  Source="/Images/logo.png" />
 | 
						|
        </Grid>
 | 
						|
        <Grid Grid.Row="1" Margin="6">
 | 
						|
            <Grid.ColumnDefinitions>
 | 
						|
                <ColumnDefinition Width="Auto" />
 | 
						|
                <ColumnDefinition Width="Auto" />
 | 
						|
            </Grid.ColumnDefinitions>
 | 
						|
            <Grid Margin="0" Grid.Column="0" Width="280">
 | 
						|
                <Grid.Background>
 | 
						|
                    <ImageBrush ImageSource="/Images/box.png" />
 | 
						|
                </Grid.Background>
 | 
						|
                <Grid.RowDefinitions>
 | 
						|
                    <RowDefinition Height="200" />
 | 
						|
                    <RowDefinition />
 | 
						|
                </Grid.RowDefinitions>
 | 
						|
                <Grid Grid.Row="1" Height="430" Margin="0 20 0 0">
 | 
						|
                    <Grid.RowDefinitions>
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                        <RowDefinition />
 | 
						|
                    </Grid.RowDefinitions>
 | 
						|
                    <Grid.Resources>
 | 
						|
                        <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignPaperLightButton}">
 | 
						|
                            <Setter Property="Foreground" Value="#00a0ea" />
 | 
						|
                            <Setter Property="BorderBrush" Value="#00a0ea" />
 | 
						|
                        </Style>
 | 
						|
                    </Grid.Resources>
 | 
						|
                    <Button Grid.Row="0" Width="210" Content="1" Command="{Binding OpenDrawer}" CommandParameter="1" />
 | 
						|
                    <Button Grid.Row="1" Width="210" Content="2" Command="{Binding OpenDrawer}" CommandParameter="2" />
 | 
						|
                    <Button Grid.Row="2" Width="210" Content="3" Command="{Binding OpenDrawer}" CommandParameter="3" />
 | 
						|
                    <Button Grid.Row="3" Width="210" Content="4" Command="{Binding OpenDrawer}" CommandParameter="4" />
 | 
						|
                    <Button Grid.Row="4" Width="210" Content="5" Command="{Binding OpenDrawer}" CommandParameter="5" />
 | 
						|
                    <Button Grid.Row="5" Width="210" Content="6" Command="{Binding OpenDrawer}" CommandParameter="6" />
 | 
						|
                    <Button Grid.Row="6" Width="210" Content="7" Command="{Binding OpenDrawer}" CommandParameter="7" />
 | 
						|
                    <Button Grid.Row="7" Width="210" Content="8" Command="{Binding OpenDrawer}" CommandParameter="8" />
 | 
						|
 | 
						|
                </Grid>
 | 
						|
            </Grid>
 | 
						|
            <Grid Grid.Column="1">
 | 
						|
                <Grid.RowDefinitions>
 | 
						|
                    <RowDefinition Height="Auto"/>
 | 
						|
                    <RowDefinition Height="Auto"/>
 | 
						|
                </Grid.RowDefinitions>
 | 
						|
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="16 0 0 0">
 | 
						|
                    <Button  Margin="0 0 6 0" Content="返回登录" Command="{Binding ReturnLoginDelegate}" CommandParameter="0"
 | 
						|
                    Visibility="{Binding DBConnectionStatus, Converter={StaticResource BooleanToVisibilityConverter}}" Style="{StaticResource MaterialDesignOutlinedLightButton}"/>
 | 
						|
                
 | 
						|
                    <Button
 | 
						|
                          Style="{StaticResource MaterialDesignRaisedLightButton}"
 | 
						|
                          Background="#7986cb"
 | 
						|
                          BorderBrush="#7986cb"
 | 
						|
                          materialDesign:ButtonAssist.CornerRadius="5" Cursor="Hand" IsCancel="true" 
 | 
						|
                          Command="{ Binding ExitCommand }" >       
 | 
						|
                        <TextBlock Foreground="{DynamicResource MaterialDesignPaper}" Text="退出" />
 | 
						|
                    </Button>
 | 
						|
                </StackPanel>
 | 
						|
                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="1">
 | 
						|
                    <GroupBox Width="800px"
 | 
						|
                          Header="重要提示"
 | 
						|
                          Style="{StaticResource MaterialDesignGroupBox}"
 | 
						|
                          Margin="16"
 | 
						|
                          materialDesign:ColorZoneAssist.Mode="SecondaryMid">
 | 
						|
                        <TextBlock Foreground="Red" FontWeight="Bold" FontSize="16" Text="数据库连接失败,此页面为紧急开锁页面!!!" />
 | 
						|
                    </GroupBox>
 | 
						|
                </StackPanel>
 | 
						|
                <!--<materialDesign:Snackbar
 | 
						|
            Background="{Binding SnackbarBackground}"
 | 
						|
            MessageQueue="{Binding SnackbarMessageQueue}"/>-->
 | 
						|
            </Grid>
 | 
						|
        </Grid>
 | 
						|
    </Grid>
 | 
						|
</UserControl>
 |