|
- <Window x:Class="FryPot_DosingSystem.View.FlowProcessView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:FryPot_DosingSystem.View"
- xmlns:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
- xmlns:Themes1="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
- mc:Ignorable="d"
- Title="FlowProcessView" Height="675" Width="1075" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True">
- <Window.DataContext>
- <vm:FlowProcessSetViewModel/>
- </Window.DataContext>
- <Window.Resources>
- <!--<ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>-->
- <SolidColorBrush x:Key="foreground" Color="#a2c2e8" />
- <SolidColorBrush x:Key="borderBrush" Color="#FF074B92" />
- <Style x:Key="ComboBoxFocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="4,4,21,4"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>
- <Style x:Key="ComboBoxTransparentButtonStyle" TargetType="{x:Type ToggleButton}">
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="MinHeight" Value="0" />
- <Setter Property="Width" Value="Auto" />
- <Setter Property="Height" Value="Auto" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="BorderBrush" Value="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}" />
- <Setter Property="BorderThickness" Value="2" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <DockPanel
- Background="{TemplateBinding Background}"
- LastChildFill="false"
- SnapsToDevicePixels="true">
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderStyle="None"
- BorderThickness="{TemplateBinding BorderThickness}"
- DockPanel.Dock="Right">
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="{StaticResource DownArrowGeometry}"
- Fill="{TemplateBinding Foreground}" />
- </Themes1:ClassicBorderDecorator>
- </DockPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="Border" Property="BorderStyle" Value="AltPressed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="MinHeight" Value="0" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <ScrollViewer
- x:Name="PART_ContentHost"
- Background="Transparent"
- Focusable="false"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <Grid>
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- BorderBrush="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}"
- BorderStyle="None"
- BorderThickness="2">
- <Popup
- x:Name="PART_Popup"
- AllowsTransparency="true"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <Themes1:SystemDropShadowChrome
- x:Name="Shdw"
- MinWidth="{Binding ActualWidth, ElementName=Border}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- Color="Transparent">
- <Border
- x:Name="DropDownBorder"
- BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
- BorderThickness="1">
- <Border.Background>
- <ImageBrush
- ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/内部背景.png"
- Opacity="0.5"
- Stretch="Fill" />
- </Border.Background>
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid RenderOptions.ClearTypeHint="Enabled">
- <Canvas
- Width="0"
- Height="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Rectangle
- x:Name="OpaqueRect"
- Width="{Binding ActualWidth, ElementName=DropDownBorder}"
- Height="{Binding ActualHeight, ElementName=DropDownBorder}"
- Fill="{Binding Background, ElementName=DropDownBorder}" />
- </Canvas>
- <ItemsPresenter
- x:Name="ItemsPresenter"
- KeyboardNavigation.DirectionalNavigation="Contained"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ScrollViewer>
- </Border>
- </Themes1:SystemDropShadowChrome>
- </Popup>
- </Themes1:ClassicBorderDecorator>
- <ToggleButton
- Width="Auto"
- MinWidth="0"
- MinHeight="0"
- ClickMode="Press"
- Focusable="false"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxTransparentButtonStyle}" />
- <DockPanel>
- <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
- <TextBox
- x:Name="PART_EditableTextBox"
- Margin="{TemplateBinding Padding}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- CaretBrush="White"
- IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxEditableTextBox}" />
- </DockPanel>
-
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="HasItems" Value="false">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
- </Trigger>
- <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
- <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
- <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true" />
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
- </MultiTrigger>
- <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
- <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
- <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <Style x:Key="BaseComboBoxStyle" TargetType="{x:Type ComboBox}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="{DynamicResource borderBrush}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Margin" Value="0,0,0,0" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Height" Value="24" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
- <Setter Property="ScrollViewer.PanningMode" Value="Both" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="IsTextSearchCaseSensitive" Value="true" />
- <Setter Property="IsEditable" Value="true" />
- <Setter Property="StaysOpenOnEdit" Value="true" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBox}">
-
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <Grid>
- <Themes1:ClassicBorderDecorator
- x:Name="Border"
- BorderBrush="{x:Static Themes1:ClassicBorderDecorator.ClassicBorderBrush}"
- BorderStyle="None"
- BorderThickness="2">
- <Popup
- x:Name="PART_Popup"
- AllowsTransparency="true"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <Themes1:SystemDropShadowChrome
- x:Name="Shdw"
- MinWidth="{Binding ActualWidth, ElementName=Border}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- Color="Transparent">
- <Border
- x:Name="DropDownBorder"
- BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
- BorderThickness="1">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/内部背景.png" />
- </Border.Background>
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid RenderOptions.ClearTypeHint="Enabled">
- <Canvas
- Width="0"
- Height="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Rectangle
- x:Name="OpaqueRect"
- Width="{Binding ActualWidth, ElementName=DropDownBorder}"
- Height="{Binding ActualHeight, ElementName=DropDownBorder}"
- Fill="{Binding Background, ElementName=DropDownBorder}" />
- </Canvas>
- <ItemsPresenter
- x:Name="ItemsPresenter"
- KeyboardNavigation.DirectionalNavigation="Contained"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ScrollViewer>
- </Border>
- </Themes1:SystemDropShadowChrome>
- </Popup>
- </Themes1:ClassicBorderDecorator>
- <DockPanel Margin="2">
- <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
- <Border x:Name="SelectedItemBorder" Margin="{TemplateBinding Padding}">
- <ContentPresenter
- Margin="1,1,1,1"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding SelectionBoxItem}"
- ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </DockPanel>
- <ToggleButton
- Width="Auto"
- MinWidth="0"
- MinHeight="0"
- Margin="2"
- ClickMode="Press"
- Focusable="false"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxTransparentButtonStyle}" />
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <!--<Condition Property="IsSelectionBoxHighlighted" Value="true"/>-->
- <Condition Property="IsDropDownOpen" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
- </MultiTrigger>
- <!--<Trigger Property="IsSelectionBoxHighlighted" Value="true">
- <Setter Property="Background" TargetName="SelectedItemBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
- </Trigger>-->
- <Trigger Property="HasItems" Value="false">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true" />
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
- </MultiTrigger>
- <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
- <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
- <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
- </Trigger>
- <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
- <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
- <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsEditable" Value="true">
- <Setter Property="IsTabStop" Value="false" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
- </Trigger>
- </Style.Triggers>
-
- </Style>
- <Style BasedOn="{StaticResource BaseComboBoxStyle}" TargetType="ComboBox" />
- <!--#endregion-->
-
- <!--#region ColorCommboxStyle-->
- <ObjectDataProvider
- x:Key="colorPropertieOdp"
- MethodName="GetProperties"
- ObjectInstance="{x:Type Colors}" />
- <Style
- x:Key="ColorCommboxStyle"
- BasedOn="{StaticResource BaseComboBoxStyle}"
- TargetType="ComboBox">
- <Setter Property="IsTextSearchCaseSensitive" Value="False" />
- <Setter Property="IsEditable" Value="False" />
- <Setter Property="StaysOpenOnEdit" Value="False" />
- <Setter Property="ItemsSource" Value="{Binding Source={StaticResource colorPropertieOdp}}" />
- <Setter Property="ItemTemplate">
- <Setter.Value>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <Rectangle
- Width="40"
- Height="10"
- Fill="{Binding Name}" />
- <TextBlock Text="{Binding Name}" />
- </StackPanel>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- </Window.Resources>
- <Border x:Name="br">
- <Border.Background>
- <SolidColorBrush Color="#264c73"/>
- </Border.Background>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="40"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
-
- <TextBlock Text="炒锅工艺" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" Background="Transparent" FontSize="25" Cursor="Arrow" ></TextBlock>
-
- <Border BorderThickness="0,0,0,1" BorderBrush="#FF2AB2E7"></Border>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Content="向前新增" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding AddFrontFlowItemCommand}" ></Button>
- <Button Content="向后新增" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding AddLastFlowItemCommand}" ></Button>
- <Button Content="删除选项" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding DeleteFlowItemCommand}" ></Button>
- <Button Content="新增料品" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Click="Button_Click"></Button>
- <Button Content="保存工艺" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding ConfirmCommand}" ></Button>
- <Button Content="取消" Height="30" Width="100" Margin="0,0,10,0" Background="Transparent" FontSize="18" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Command="{Binding CloseWindowCommand}"></Button>
-
- </StackPanel>
- <Grid Grid.Row="2" Background="#FF2AB2E7" Margin="0,0,0,5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="87"/>
- <ColumnDefinition Width="120"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="112"/>
- <ColumnDefinition Width="112"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- <ColumnDefinition Width="92"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="工艺步骤" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="1" Text="原料/桶号设定" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="1" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="2" Text="速度(Hz)" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="2" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="3" Text="添加重量(Kg)" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18" ></TextBlock>
- <GridSplitter Grid.Column="3" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="4" Text="目标重量(Kg)" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18" ></TextBlock>
- <GridSplitter Grid.Column="4" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="5" Text="温度(℃)" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="5" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="6" Text="时间(M)" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="6" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="7" Text="一圈火比例" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="7" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="8" Text="二圈火比例" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="8" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="9" Text="三圈火比例" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- <GridSplitter Grid.Column="9" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
- <TextBlock Grid.Column="10" Text="四圈火比例" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
- </Grid>
- <StackPanel Grid.Row="3" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,5">
- <TextBlock Text="目标重量偏差设置:" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/>
- <TextBox Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#e69519" Cursor="Hand" Text="{Binding targetWeightOffset}" FontSize="18" Width="200" TextChanged="TextBox_TextChanged_10" Height="35" VerticalContentAlignment="Center"/>
- <TextBlock Text="Kg" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/>
- </StackPanel>
- <ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Hidden">
- <ItemsControl x:Name="itemcontrols" AlternationCount="{Binding flowProcessModels.Count}" ItemsSource="{Binding flowProcessModels}" Margin="0,1,0,-1">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel x:Name="stk" Orientation="Horizontal" >
- <Label MouseLeftButtonDown="Label_MouseLeftButtonDown" Content="{Binding Path=(ItemsControl.AlternationIndex),RelativeSource={
- RelativeSource TemplatedParent}}" Foreground="SkyBlue" Width="87" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="18" Background="Transparent" BorderBrush="#FF2AB2E7" BorderThickness="1,1,0.5,1"/>
- <ComboBox ItemsSource="{Binding DataContext.FlowItems, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}" Text="{Binding FryMaterialNum}" Style="{StaticResource BaseComboBoxStyle}" IsReadOnly="True" Width="120" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
- <TextBox Text="{Binding FrySpeed}" Width="92" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1" TextChanged="TextBox_TextChanged"/>
- <TextBox Text="{Binding FryWeight}" Width="112" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1" TextChanged="TextBox_TextChanged_1"/>
- <TextBox Text="{Binding TargeWeight}" Width="112" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1" TextChanged="TextBox_TextChanged_8"/>
- <TextBox Text="{Binding FryTemperature}" Width="92" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1" TextChanged="TextBox_TextChanged_2"/>
- <TextBox Text="{Binding FryPeriodTime}" Width="92" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,1,1" TextChanged="TextBox_TextChanged_3"/>
-
-
- <TextBox FontSize="18" >
- <TextBox.Template>
- <ControlTemplate>
- <Border Width="92" Height="40" BorderThickness="0.5,1,1,1" BorderBrush="#FF2AB2E7">
- <StackPanel Orientation="Horizontal">
- <TextBox Width="60" Height="40" VerticalAlignment="Center" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Padding="0,0,10,0" BorderBrush="Transparent" HorizontalAlignment="Center" Background="Transparent" Foreground="SkyBlue" Text="{Binding SmallFirePercent}" TextChanged="TextBox_TextChanged_4"/>
- <TextBlock Text="%" HorizontalAlignment="Right" Foreground="SkyBlue" VerticalAlignment="Center"/>
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
-
- </TextBox.Template>
- </TextBox>
- <TextBox FontSize="18" >
- <TextBox.Template>
- <ControlTemplate>
- <Border Width="92" Height="40" BorderThickness="0.5,1,1,1" BorderBrush="#FF2AB2E7">
- <StackPanel Orientation="Horizontal">
- <TextBox Width="60" Height="40" VerticalAlignment="Center" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Padding="0,0,10,0" BorderBrush="Transparent" HorizontalAlignment="Center" Background="Transparent" Foreground="SkyBlue" Text="{Binding MidFirePercent}" TextChanged="TextBox_TextChanged_5"/>
- <TextBlock Text="%" HorizontalAlignment="Right" Foreground="SkyBlue" VerticalAlignment="Center"/>
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
-
- </TextBox.Template>
- </TextBox>
- <TextBox FontSize="18" >
- <TextBox.Template>
- <ControlTemplate>
- <Border Width="92" Height="40" BorderThickness="0.5,1,1,1" BorderBrush="#FF2AB2E7">
- <StackPanel Orientation="Horizontal">
- <TextBox Width="60" Height="40" VerticalAlignment="Center" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Padding="0,0,10,0" BorderBrush="Transparent" HorizontalAlignment="Center" Background="Transparent" Foreground="SkyBlue" Text="{Binding BigFirePercent}" TextChanged="TextBox_TextChanged_6"/>
- <TextBlock Text="%" HorizontalAlignment="Right" Foreground="SkyBlue" VerticalAlignment="Center"/>
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
-
- </TextBox.Template>
- </TextBox>
- <TextBox FontSize="18" >
- <TextBox.Template>
- <ControlTemplate>
- <Border Width="92" Height="40" BorderThickness="0.5,1,1,1" BorderBrush="#FF2AB2E7">
- <StackPanel Orientation="Horizontal">
- <TextBox Width="60" Height="40" VerticalAlignment="Center" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Padding="0,0,10,0" BorderBrush="Transparent" HorizontalAlignment="Center" Background="Transparent" Foreground="SkyBlue" Text="{Binding StrongFirePercent}" TextChanged="TextBox_TextChanged_7"/>
- <TextBlock Text="%" HorizontalAlignment="Right" Foreground="SkyBlue" VerticalAlignment="Center"/>
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
-
- </TextBox.Template>
- </TextBox>
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Border>
- </Window>
|