|
- <UserControl
- x:Class="BPASmartClient.MorkS.View.ParSet"
- 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:local="clr-namespace:BPASmartClient.MorkS.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
- Name="参数设置界面"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:ParSetViewModel />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary>
- <Style x:Key="TextBlockStyle" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontSize" Value="22" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
- <Setter Property="BorderBrush" Value="#FF23CACA" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
-
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
-
- </UserControl.Resources>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
-
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
-
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
-
- <pry:IcoButton
- Grid.Column="5"
- Width="140"
- HorizontalAlignment="Left"
- Command="{Binding SaveInfoCommand}"
- Content="保存配置"
- FontSize="16"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}">
- <pry:IcoButton.Foreground>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Color="#FFBB662A" />
- <GradientStop Offset="1" Color="White" />
- </LinearGradientBrush>
- </pry:IcoButton.Foreground>
- </pry:IcoButton>
-
-
- </StackPanel>
-
- <!-- 参数放置面板 -->
- <Grid Grid.Row="2">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="150" />
- </Grid.RowDefinitions>
-
- <ItemsControl Grid.Row="0" ItemsSource="{Binding parSets}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Minute}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
- <TextBox
- Width="100"
- Margin="0,10"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding Second}" />
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
-
- <CheckBox
- Height="20"
- Margin="10"
- VerticalAlignment="Center"
- Background="#FF2AB2E7"
- Content="{Binding CheckBoxContext}"
- FontSize="14"
- Foreground="#00c2f4"
- IsChecked="{Binding IsShield}"
- Template="{StaticResource CbTemplate}" />
-
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
-
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock
- FontSize="21"
- Margin="40 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="加汤时间:" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding AddSoup}" />
- <TextBlock
- FontSize="21"
- Margin="10 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="(秒)" />
- <TextBlock
- FontSize="21"
- Margin="40 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="清洗加汤管道时间:" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding DelayTime}" />
- <TextBlock
- FontSize="21"
- Margin="10 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="(秒)" />
- <Button Content="启动" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" Foreground="Aqua"
- Style="{StaticResource ButtonStyle}" Command="{Binding CommandStart}" />
- <TextBlock
- FontSize="21"
- Margin="40 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="倒面条件,煮面口使用数量:" />
- <TextBox
- Width="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderBrush="#FF23CACA"
- CaretBrush="Aqua"
- FontFamily="楷体"
- FontSize="21"
- Foreground="#ff34f7f7"
- Text="{Binding OpenUseNumber}" />
- <TextBlock
- FontSize="21"
- Margin="10 0 0 0"
- Style="{StaticResource TextBlockStyle}"
- Text="(个)" />
- </StackPanel>
- </Grid>
-
- </Grid>
-
-
- </UserControl>
|