12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <UserControl x:Class="CyberX8_Themes.UserControls.PufMotionCommandControl"
- 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="260">
- <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="Vacuum A" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=VacuumA, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="0" Grid.Column="1" >
- <Label Height="40" Content="Vacuum B" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=VacuumB, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,5,0">
- <TextBlock Width="110" Text="{Binding VacuumAValue, ElementName=self, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
- </WrapPanel>
- <WrapPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
- <TextBlock Width="110" Text="{Binding VacuumBValue, ElementName=self, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,5,0">
- <CheckBox Content="Vacuum A ON" IsChecked="{Binding ElementName=self,Path=VacuumAChecked}" Click="VacuumA_Click"></CheckBox>
- </WrapPanel>
- <WrapPanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
- <CheckBox Content="Vacuum B ON" IsChecked="{Binding ElementName=self,Path=VacuumBChecked}" Click="VacuumB_Click"></CheckBox>
- </WrapPanel>
- <Button Style="{StaticResource SysBtnStyle}" Content="All Motors On" Grid.Row="3" Grid.Column="0" Width="100" Height="25" Click="AllMotorOn_Click"></Button>
- <Button Style="{StaticResource SysBtnStyle}" Content="All Motors off" Grid.Row="3" Grid.Column="1" Width="100" Height="25" Click="AllMotorOff_Click"></Button>
- <Button Style="{StaticResource SysBtnStyle}" Content="Home PUF" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Width="100" Height="25" Click="HomePuf_Click"></Button>
- </Grid>
- </GroupBox>
- </Grid>
- </UserControl>
|