1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <UserControl x:Class="CyberX8_Themes.UserControls.RecipeControl"
- 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:CyberX8_Themes.Converters"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
- xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
- mc:Ignorable="d" x:Name="self"
- d:DesignHeight="350" d:DesignWidth="520">
- <UserControl.Resources>
- <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
- <converters:BoolToInverseBoolConverter x:Key="BoolToInverseBoolConverter" />
- </UserControl.Resources>
- <GroupBox
- Header="{Binding ModuleTitle, ElementName=self}"
- BorderBrush="DarkGray">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="310"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Button Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Run" Height="35" Width="140"
- Click="RunRecipe_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
- <Label Grid.Row="2" Grid.RowSpan="2" Grid.Column="1" Height="40" FontSize="14" FontWeight="Bold" Content="Cycle" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" />
- <Border Grid.Row="2" Grid.Column="2" Margin="10,0,20,0" Background="Black" Height="22" Width="30">
- <TextBlock Text="{Binding ElementName=self,Path=AchievedCycleTimes}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Control:IntegerTextBox Grid.Row="3" Grid.Column="2" Margin="10,0,20,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" Height="22" Width="30"
- Value="{Binding ElementName=self,Path=InputCycleTimes,Mode=TwoWay}"
- TextboxName="InputCycleTimes"
- />
- <Button Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Abort" Height="35" Width="140" Click="Abort_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
- <Button Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Edit" Height="35" Width="140" Click="Edit_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
- <local:RecipeLoadControl Grid.Row="0" Grid.RowSpan="9"
- RecipeType="{Binding ElementName=self,Path=RecipeType}"
- SelectedRecipeNode="{Binding ElementName=self,Path=SelectedRecipeNode,Mode=TwoWay}"
- IsEngineeringMode ="{Binding ElementName=self,Path=IsEngineering,Mode=TwoWay}"
- IsProductionMode ="{Binding ElementName=self,Path=IsProduction,Mode=TwoWay}"
- />
- </Grid>
- </GroupBox>
- </UserControl>
|