<Window x:Class="Khd.Core.Wpf.WindowPage.HoistWarnHandlerWindow"
        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"
        xmlns:local="clr-namespace:Khd.Core.Wpf.WindowPage"
        xmlns:localConverter="clr-namespace:Khd.Core.Wpf.myConverter"
        mc:Ignorable="d" WindowState="Maximized" StateChanged="Window_StateChanged"
        Title="提升机报警处理" Height="1080" Width="1920" WindowStartupLocation="CenterScreen"  Background="#172557">

    <Window.Resources>



        <ResourceDictionary>

            <!-- 定义样式 -->
            <Style x:Key="CustomDatePicker" TargetType="DatePicker">

                <!-- 设置背景颜色 -->
                <Setter Property="Background" Value="LightBlue"></Setter>
                <!-- 设置边框颜色 -->
                <Setter Property="BorderBrush" Value="DarkBlue"></Setter>
                <!-- 设置字体样式 -->
                <Setter Property="FontSize" Value="20"></Setter>
                <!-- 设置前景色（文本颜色） -->
                <Setter Property="Foreground" Value="Black"></Setter>


            </Style>


            <!-- 定义日历的样式 -->
            <Style x:Key="CustomCalendarStyle" TargetType="Calendar">
                <!-- 设置背景颜色 -->
                <Setter Property="Background" Value="White"></Setter>
                <!-- 设置边框颜色 -->
                <Setter Property="BorderBrush" Value="Blue"></Setter>

                <Setter Property="Width" Value="350"></Setter>
                <Setter Property="Height" Value="250"></Setter>
                <!-- 设置字体样式 -->
                <Setter Property="FontSize" Value="16"></Setter>
            </Style>

            <Style x:Key="XingHaoBianMaYangShi" TargetType="{x:Type TextBox}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="TextBox">
                            <Border BorderThickness="1" BorderBrush="Gray" CornerRadius="8" Background="{TemplateBinding Background}">
                                <ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center"  BorderThickness="0" IsTabStop="False"></ScrollViewer>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
                <Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
            </Style>

            <localConverter:TypeDataConverter x:Key="taskTypeConverter"/>
            <localConverter:EquipConverter x:Key="EquipConverter"/>
            <localConverter:AgvTaskStatusConverter x:Key="AgvTaskStatusConverter"/>


            <Style x:Key="dgCell" TargetType="TextBlock" BasedOn="{x:Null}">
                <Setter Property="TextAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>

            <ResourceDictionary.MergedDictionaries>
                <!--<hc:ThemeResources/>
                 <hc:Theme/>-->
                <ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
                <ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
                <ResourceDictionary Source="/CSS/DataGridClass.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="10*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">

            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">
                <TextBlock Text="提升机所在楼层:" FontSize="25" Width="190"  Foreground="White" VerticalAlignment="Center"/>
                <TextBlock x:Name="FloorTxt" FontSize="20" Width="50"  Foreground="White" VerticalAlignment="Center"/>
                <Button Margin="10 0" x:Name="ManualHoistButton"
                            Content="1.手动提升机"
                            Background="Yellow" Width="130" Height="40" FontSize="20" Click="ManualHoistButton_Click">
                </Button>
                <TextBlock Text="    ===>" FontSize="20" Width="100"  Foreground="White" VerticalAlignment="Center" />
                <Button Margin="10 0"  IsEnabled="False"
                            Content="2.步序清0" x:Name="HoistClearButton"
                            Background="Yellow" Width="130" Height="40" FontSize="20" Click="HoistClear_Click">
                </Button>
               
                <TextBlock Text="    ===>" FontSize="20" Width="100"  Foreground="White" VerticalAlignment="Center" />
                <TextBlock x:Name="timeTxt1" Text="" FontSize="20" Width="50"  Foreground="White" VerticalAlignment="Center" />
                <Button Margin="10 0" x:Name="TaskHandlerButton"  IsEnabled="False"
                            Content="3.任务处理"
                            Background="Yellow" Width="130" Height="40" FontSize="20" Click="TaskHandlerButton_Click">
                </Button>

                <TextBlock Text="    ===>" FontSize="20" Width="100"  Foreground="White" VerticalAlignment="Center" />
                <TextBlock x:Name="timeTxt2" Text="" FontSize="20" Width="50"  Foreground="White" VerticalAlignment="Center" />
                <Button Margin="10 0"
                            Content="3.出提升机" x:Name="PalletOutButton"  IsEnabled="False"
                            Background="Yellow" Width="130" Height="40" FontSize="20" Click="PalletOutButton_Click">
                </Button>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <StackPanel  Orientation="Horizontal">
                <TextBlock Text="提示信息:" FontSize="25" Width="140"  Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                <TextBlock  x:Name="Msg"  FontSize="25"   Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Left"/>
            </StackPanel>
        </Grid>
        
        <Grid Grid.Row="2">
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <StackPanel>
                    <Image Source="/Resources/Pictures/word1.jpg" Height="1080" Width="1900" Margin="10"/>
                    <Image Source="/Resources/Pictures/word2.jpg" Height="1080" Width="1900" Margin="10"/>
                    <Image Source="/Resources/Pictures/word3.jpg" Height="1080" Width="1900" Margin="10"/>
                    <!-- Add more images here -->
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>

</Window>
