123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <UserControl x:Class="CyberX8_Themes.UserControls.PufChuckControl"
- 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:CyberX8_Themes.UserControls"
- xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
- mc:Ignorable="d" Name="self"
- d:DesignHeight="200" d:DesignWidth="300">
- <UserControl.Resources>
- <converters:BoolToColor x:Key="boolToColor"/>
- </UserControl.Resources>
- <Grid>
- <GroupBox Header="Commands" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
- <Grid Margin="10,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <WrapPanel Grid.Row="0" Grid.Column="0" >
- <Label Height="40" Content="SideAChuckOut" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideAChuckOut, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="0" Grid.Column="1" >
- <Label Height="40" Content="SideBChuckOut" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckOut, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Grid.Column="0" >
- <Label Height="40" Content="SideAChuckIn" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckIn, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Grid.Column="1" >
- <Label Height="40" Content="SideBChuckIn" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckIn, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="3" Grid.Column="0" >
- <Label Height="40" Content="Chuck" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=Chuck, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <Button Style="{StaticResource SysBtnStyle}" Content="On" Grid.Row="3" Height="25" Click="ChuckOn_Click" Margin="75,5,0,5"/>
- <Button Style="{StaticResource SysBtnStyle}" Content="Off" Grid.Row="3" Grid.Column="1" Height="25" Click="ChuckOff_Click" Margin="10,5,65,5"/>
- </Grid>
- </GroupBox>
- </Grid>
- </UserControl>
|