123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <UserControl x:Class="PunkHPX8_Themes.UserControls.PlatingCellCCRControl"
- 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:converters="clr-namespace:PunkHPX8_Themes.Converters"
- xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls"
- xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
- xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
- mc:Ignorable="d" x:Name="self"
- d:DesignHeight="180" d:DesignWidth="220">
- <UserControl.Resources>
- <converters:BoolToYellowColor x:Key="boolToYellowColor"></converters:BoolToYellowColor>
- <converters:BoolToColor x:Key="boolToColor"></converters:BoolToColor>
- <converters:BoolToColor2 x:Key="boolToColor2"></converters:BoolToColor2>
- <converters:BoolToColor6 x:Key="boolToColor6"></converters:BoolToColor6>
- <converters:BoolToBool x:Key="boolToBool"></converters:BoolToBool>
- </UserControl.Resources>
- <GroupBox Header="CCR">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="80"/>
- <ColumnDefinition Width="100"/>
- <ColumnDefinition Width="40"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <Label Content="Step" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0">
- <Label Content="Speed" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <Label Content="TimeRemain" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
- </Grid>
- <Border Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="4" Margin="5,5,15,5" Background="Black" VerticalAlignment="Center">
- <TextBlock Text="{Binding ElementName=self,Path=Step}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border Grid.Row="1" Grid.Column="1" Margin="5,5,15,5" Background="Black" VerticalAlignment="Center">
- <TextBlock Text="{Binding ElementName=self,Path=Speed}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Background="Black" Margin="90,5,15,5" Width="35" VerticalAlignment="Center" HorizontalAlignment="Left">
- <TextBlock Text="rpm" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="45,5,55,5" Background="Black" VerticalAlignment="Center">
- <TextBlock Text="{Binding ElementName=self,Path=TimeRemain}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Background="Black" Margin="90,5,15,5" Width="35" VerticalAlignment="Center" HorizontalAlignment="Left">
- <TextBlock Text="s" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
- <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,50,0" Grid.Column="1" Height="25" Width="60" Content="Start" Click="Start_Click"></Button>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2">
- <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,10,0" Grid.Column="1" Height="25" Width="60" Content="Stop" Click="Stop_Click"></Button>
- </Grid>
- </Grid>
- </GroupBox>
- </UserControl>
|