| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 | <UserControl x:Class="EfemUI.Views.IoViewRSW2"             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:controls="clr-namespace:Aitex.Sorter.UI.Controls;assembly=Aitex.Sorter.UI"             mc:Ignorable="d"             d:DesignHeight="800" d:DesignWidth="1900">    <UserControl.Resources>        <Style TargetType="Button" x:Key="diStyle">            <Setter Property="Background" Value="{StaticResource buttonNormal}"></Setter>            <Setter Property="Foreground" Value="{StaticResource buttonForground}"></Setter>            <Setter Property="BorderBrush" Value="{StaticResource buttonBorder}"></Setter>            <Setter Property="Cursor" Value="Hand"/>            <Setter Property="Margin" Value="3"/>            <Setter Property="FontFamily" Value="Arial,SimSun" />            <Setter Property="FontSize" Value="14"/>            <Setter Property="Height" Value="40"></Setter>            <Setter Property="Width" Value="100"></Setter>            <Setter Property="VerticalAlignment" Value="Top"></Setter>            <Setter Property="Template">                <Setter.Value>                    <ControlTemplate TargetType="{x:Type Button}">                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"                                 SnapsToDevicePixels="true" CornerRadius="3,3,3,3">                            <ContentPresenter x:Name="contentPresenter"                                               Focusable="False"                                               HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"                                               Margin="{TemplateBinding Padding}"                                               RecognizesAccessKey="True"                                               SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"  />                        </Border>                        <ControlTemplate.Triggers>                            <Trigger Property="IsMouseOver" Value="true">                                <!--<Setter Property="Background" TargetName="border" Value="{StaticResource buttonHover}"/>-->                            </Trigger>                            <Trigger Property="IsEnabled" Value="false">                                <Setter Property="Opacity" Value="0.5" TargetName="border"/>                                <Setter Property="Background" TargetName="border" Value="Gray" />                            </Trigger>                        </ControlTemplate.Triggers>                    </ControlTemplate>                </Setter.Value>            </Setter>        </Style>        <Style TargetType="Button" x:Key="doStyle">            <Setter Property="Background" Value="{StaticResource buttonNormal}"></Setter>            <Setter Property="Foreground" Value="{StaticResource buttonForground}"></Setter>            <Setter Property="BorderBrush" Value="{StaticResource buttonBorder}"></Setter>            <Setter Property="Cursor" Value="Hand"/>            <Setter Property="Margin" Value="3"/>            <Setter Property="FontFamily" Value="Arial,SimSun" />            <Setter Property="FontSize" Value="14"/>            <Setter Property="Height" Value="40"></Setter>            <Setter Property="Width" Value="100"></Setter>            <Setter Property="VerticalAlignment" Value="Top"></Setter>            <Setter Property="Template">                <Setter.Value>                    <ControlTemplate TargetType="{x:Type Button}">                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"                                 SnapsToDevicePixels="true" CornerRadius="3,3,3,3">                            <ContentPresenter x:Name="contentPresenter"                                               Focusable="False"                                               HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"                                               Margin="{TemplateBinding Padding}"                                               RecognizesAccessKey="True"                                               SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"  />                        </Border>                        <ControlTemplate.Triggers>                            <Trigger Property="IsMouseOver" Value="true">                                <Setter Property="Background" TargetName="border" Value="{StaticResource buttonHover}"/>                                <Setter Property="Foreground" Value="White" />                            </Trigger>                            <Trigger Property="IsEnabled" Value="false">                                <Setter Property="Opacity" Value="0.5" TargetName="border"/>                                <Setter Property="Background" TargetName="border" Value="Gray" />                            </Trigger>                        </ControlTemplate.Triggers>                    </ControlTemplate>                </Setter.Value>            </Setter>        </Style>    </UserControl.Resources>    <Grid>        <StackPanel Orientation="Horizontal">            <controls:HeaderPanel Grid.Column="0"   Width="860" Height="780"  HorizontalAlignment="left" VerticalAlignment="Top" Header="Card3 DI" Margin="10,10,0,0">                <ItemsControl  ItemsSource="{Binding Card3DiList}">                    <ItemsControl.ItemsPanel>                        <ItemsPanelTemplate>                            <WrapPanel Orientation="Vertical"></WrapPanel>                        </ItemsPanelTemplate>                    </ItemsControl.ItemsPanel>                    <ItemsControl.ItemTemplate>                        <DataTemplate>                            <Grid>                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="60"></ColumnDefinition>                                    <ColumnDefinition Width="*"></ColumnDefinition>                                </Grid.ColumnDefinitions>                                <TextBlock Grid.Column="0" TextAlignment="Left" Text="{Binding Index, Converter={StaticResource DiIndexDisplayConvert}}"></TextBlock>                                <Button Grid.Column="1" Height="25"  Style="{StaticResource diStyle}" Foreground="Black" Width="200"  Content="{Binding Description}" HorizontalContentAlignment="Left" Padding="5,0,0,0" Margin="5,5,20,5" Background="{Binding  BoolValue, Converter={StaticResource DiValueBackgroundConvert} }"/>                            </Grid>                        </DataTemplate>                    </ItemsControl.ItemTemplate>                </ItemsControl>            </controls:HeaderPanel>            <controls:HeaderPanel Grid.Column="0"   Width="860" Height="780"  HorizontalAlignment="left" VerticalAlignment="Top" Header="Card4 DO" Margin="10,10,0,0">                <ItemsControl  ItemsSource="{Binding Card4DoList}">                    <ItemsControl.ItemsPanel>                        <ItemsPanelTemplate>                            <WrapPanel Orientation="Vertical"></WrapPanel>                        </ItemsPanelTemplate>                    </ItemsControl.ItemsPanel>                    <ItemsControl.ItemTemplate>                        <DataTemplate>                            <Grid>                                <Grid.ColumnDefinitions>                                    <ColumnDefinition Width="60"></ColumnDefinition>                                    <ColumnDefinition Width="*"></ColumnDefinition>                                </Grid.ColumnDefinitions>                                <TextBlock Grid.Column="0" TextAlignment="Left" Text="{Binding Index, Converter={StaticResource DoIndexDisplayConvert}}"></TextBlock>                                <Button Grid.Column="1" Height="25"  Style="{StaticResource doStyle}" Foreground="Black" Width="200"  Content="{Binding Description}" HorizontalContentAlignment="Left" Padding="5,0,0,0" Margin="5,5,20,5" Background="{Binding  BoolValue, Converter={StaticResource DiValueBackgroundConvert} }"/>                            </Grid>                        </DataTemplate>                    </ItemsControl.ItemTemplate>                </ItemsControl>            </controls:HeaderPanel>        </StackPanel>    </Grid></UserControl>
 |