PufChuckControl.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <UserControl x:Class="CyberX8_Themes.UserControls.PufChuckControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d" Name="self"
  9. d:DesignHeight="200" d:DesignWidth="300">
  10. <UserControl.Resources>
  11. <converters:BoolToColor x:Key="boolToColor"/>
  12. </UserControl.Resources>
  13. <Grid>
  14. <GroupBox Header="Commands" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
  15. <Grid Margin="10,0">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition></ColumnDefinition>
  18. <ColumnDefinition></ColumnDefinition>
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition></RowDefinition>
  22. <RowDefinition></RowDefinition>
  23. <RowDefinition></RowDefinition>
  24. <RowDefinition></RowDefinition>
  25. <RowDefinition></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <WrapPanel Grid.Row="0" Grid.Column="0" >
  28. <Label Height="40" Content="SideAChuckOut" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  29. <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideAChuckOut, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
  30. </WrapPanel>
  31. <WrapPanel Grid.Row="0" Grid.Column="1" >
  32. <Label Height="40" Content="SideBChuckOut" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  33. <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckOut, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
  34. </WrapPanel>
  35. <WrapPanel Grid.Row="1" Grid.Column="0" >
  36. <Label Height="40" Content="SideAChuckIn" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  37. <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckIn, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
  38. </WrapPanel>
  39. <WrapPanel Grid.Row="1" Grid.Column="1" >
  40. <Label Height="40" Content="SideBChuckIn" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  41. <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=SideBChuckIn, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
  42. </WrapPanel>
  43. <WrapPanel Grid.Row="3" Grid.Column="0" >
  44. <Label Height="40" Content="Chuck" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  45. <Ellipse Margin="5,0" Width="16" Height="16" Fill="{Binding ElementName=self, Path=Chuck, Converter={StaticResource boolToColor}}" Stroke="Silver"/>
  46. </WrapPanel>
  47. <Button Style="{StaticResource SysBtnStyle}" Content="On" Grid.Row="3" Height="25" Click="ChuckOn_Click" Margin="75,5,0,5"/>
  48. <Button Style="{StaticResource SysBtnStyle}" Content="Off" Grid.Row="3" Grid.Column="1" Height="25" Click="ChuckOff_Click" Margin="10,5,65,5"/>
  49. </Grid>
  50. </GroupBox>
  51. </Grid>
  52. </UserControl>