|
- <UserControl
- x:Class="BPASmartClient.MorkSVer3.View.ParSetView"
- 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.MorkSVer3.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.MorkSVer3.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="请点击按钮保存参数:" />
-
- <Button
- Grid.Column="5"
- Width="140"
- HorizontalAlignment="Left"
- Command="{Binding SaveInfoCommand}"
- Content="保存配置"
- FontSize="16"
- Style="{StaticResource ButtonStyle}">
- </Button>
-
-
- </StackPanel>
-
- <!-- 参数放置面板 -->
- <Grid Grid.Row="2">
- <StackPanel Orientation="Horizontal">
- <ItemsControl 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>
- <!--#region 根据库位写入煮面时间,-已废弃 -->
- <!--<Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid
- Grid.Row="0"
- Margin="100,10,0,0"
- Background="#ff0C255F">
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <TextBlock
- Grid.Column="0"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="库位序号" />
-
- <TextBlock
- Grid.Column="1"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="煮时间(分)" />
-
- <TextBlock
- Grid.Column="2"
- FontSize="24"
- Style="{StaticResource TitleTextblockStyle}"
- Text="煮时间(秒)" />
-
- <Border
- Grid.Column="0"
- Grid.ColumnSpan="4"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,1,1,1" />
- <Border
- Grid.Column="1"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
- <Border
- Grid.Column="3"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0" />
-
-
- </Grid>
- <Grid Grid.Row="1" Margin="100,0,0,0">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
- <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Name="gr">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="157"/>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
-
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- Text="{Binding TextBlockContext}" />
-
- -->
- <!--<ComboBox
- Grid.Column="1"
- Height="auto"
- Background="Transparent"
- BorderThickness="0"
- FontSize="18"
- Foreground="DeepSkyBlue"
- IsEditable="False"
- ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
- SelectedIndex="{Binding LocDishType}" />-->
- <!--
-
- <Border
- Grid.Column="0"
- Grid.ColumnSpan="3"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,1"></Border>
-
- <Border
- Grid.Column="1"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0">
- <TextBox
- Grid.Column="1"
- FontSize="18"
- Style="{StaticResource InputTextboxStyle}"
- Text="{Binding Minute}" />
- </Border>
-
- <Border
- Grid.Column="2"
- BorderBrush="{StaticResource bordColor}"
- BorderThickness="1,0,1,0">
- <TextBox
- Grid.Column="2"
- FontSize="18"
- Style="{StaticResource InputTextboxStyle}"
- Text="{Binding Second}" />
- </Border>
- </Grid>
-
- <DataTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
- </Trigger>
- </DataTemplate.Triggers>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </Grid>-->
- <!--#endregion-->
- </StackPanel>
-
-
- </Grid>
-
- </Grid>
-
-
- </UserControl>
|