PlatingCellCCRControl.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.PlatingCellCCRControl"
  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:converters="clr-namespace:PunkHPX8_Themes.Converters"
  7. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
  10. mc:Ignorable="d" x:Name="self"
  11. d:DesignHeight="180" d:DesignWidth="220">
  12. <UserControl.Resources>
  13. <converters:BoolToYellowColor x:Key="boolToYellowColor"></converters:BoolToYellowColor>
  14. <converters:BoolToColor x:Key="boolToColor"></converters:BoolToColor>
  15. <converters:BoolToColor2 x:Key="boolToColor2"></converters:BoolToColor2>
  16. <converters:BoolToColor6 x:Key="boolToColor6"></converters:BoolToColor6>
  17. <converters:BoolToBool x:Key="boolToBool"></converters:BoolToBool>
  18. </UserControl.Resources>
  19. <GroupBox Header="CCR">
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="40"/>
  23. <RowDefinition Height="40"/>
  24. <RowDefinition Height="40"/>
  25. <RowDefinition Height="40"/>
  26. <RowDefinition/>
  27. </Grid.RowDefinitions>
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="80"/>
  30. <ColumnDefinition Width="100"/>
  31. <ColumnDefinition Width="40"/>
  32. </Grid.ColumnDefinitions>
  33. <Grid Grid.Row="0" Grid.Column="0">
  34. <Label Content="Step" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  35. </Grid>
  36. <Grid Grid.Row="1" Grid.Column="0">
  37. <Label Content="Speed" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  38. </Grid>
  39. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
  40. <Label Content="TimeRemain" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  41. </Grid>
  42. <Border Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="4" Margin="5,5,15,5" Background="Black" VerticalAlignment="Center">
  43. <TextBlock Text="{Binding ElementName=self,Path=Step}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  44. </Border>
  45. <Border Grid.Row="1" Grid.Column="1" Margin="5,5,15,5" Background="Black" VerticalAlignment="Center">
  46. <TextBlock Text="{Binding ElementName=self,Path=Speed}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  47. </Border>
  48. <Border Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Background="Black" Margin="90,5,15,5" Width="35" VerticalAlignment="Center" HorizontalAlignment="Left">
  49. <TextBlock Text="rpm" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  50. </Border>
  51. <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="45,5,55,5" Background="Black" VerticalAlignment="Center">
  52. <TextBlock Text="{Binding ElementName=self,Path=TimeRemain}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  53. </Border>
  54. <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Background="Black" Margin="90,5,15,5" Width="35" VerticalAlignment="Center" HorizontalAlignment="Left">
  55. <TextBlock Text="s" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  56. </Border>
  57. <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
  58. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,50,0" Grid.Column="1" Height="25" Width="60" Content="Start" Click="Start_Click"></Button>
  59. </Grid>
  60. <Grid Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2">
  61. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,10,0" Grid.Column="1" Height="25" Width="60" Content="Stop" Click="Stop_Click"></Button>
  62. </Grid>
  63. </Grid>
  64. </GroupBox>
  65. </UserControl>