80 lines
4.6 KiB
Plaintext
80 lines
4.6 KiB
Plaintext
|
|
<Window x:Class="MegaRobo.C00225155App.MenuViews.SuckFluidView"
|
||
|
|
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:MegaRobo.C00225155App.MenuViews"
|
||
|
|
xmlns:common="clr-namespace:Common;assembly=Common"
|
||
|
|
mc:Ignorable="d" DataContext="{Binding SuckFluidVM,Source={StaticResource vmLocator}}"
|
||
|
|
WindowStartupLocation="CenterOwner"
|
||
|
|
Title="液体吸液参数修改" Height="880" Width="1100">
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="50"/>
|
||
|
|
<RowDefinition/>
|
||
|
|
<RowDefinition Height="50"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="560"/>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<!--第一列-->
|
||
|
|
<StackPanel Orientation="Horizontal" Height="48" VerticalAlignment="Center" Margin="5">
|
||
|
|
<TextBlock Text="液体名称" VerticalAlignment="Center" />
|
||
|
|
<TextBox Text="{Binding LiquidName,Mode=TwoWay}" Style="{StaticResource textBoxStyle}" Width="120" Height="30" />
|
||
|
|
<TextBlock Text="吸液系数" VerticalAlignment="Center" Margin="5,0"/>
|
||
|
|
<TextBox Text="{Binding Ratio,Mode=TwoWay,StringFormat=F4}" Style="{StaticResource textBoxStyle}" Width="120" Height="30" />
|
||
|
|
<TextBlock Text="吸液方式" VerticalAlignment="Center" Margin="10,0"/>
|
||
|
|
<ComboBox Width="120" Height="25" ItemsSource="{Binding SuckModeItems}" DisplayMemberPath="DisplayName" SelectedValuePath="Value"
|
||
|
|
SelectedValue="{Binding SelectedSuckMode, Mode=TwoWay}" />
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
<ItemsControl Grid.Row="1" ItemsSource="{Binding Properties}">
|
||
|
|
<ItemsControl.ItemContainerStyle>
|
||
|
|
<Style TargetType="ContentPresenter">
|
||
|
|
<Setter Property="Height" Value="32"/>
|
||
|
|
</Style>
|
||
|
|
</ItemsControl.ItemContainerStyle>
|
||
|
|
<ItemsControl.ItemTemplate >
|
||
|
|
<DataTemplate>
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
||
|
|
<TextBlock Text="{Binding Name}" Margin="10,0,0,0" Width="30" FontWeight="Bold"/>
|
||
|
|
<TextBlock Text="{Binding Description}" Width="350" />
|
||
|
|
<TextBox Style="{StaticResource textBoxStyle}" Text="{Binding Value,Mode=TwoWay}" Width="80" Height="22" />
|
||
|
|
</StackPanel>
|
||
|
|
</DataTemplate>
|
||
|
|
</ItemsControl.ItemTemplate>
|
||
|
|
</ItemsControl>
|
||
|
|
|
||
|
|
<!--第二列-->
|
||
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" Height="48" VerticalAlignment="Center" Margin="5">
|
||
|
|
<TextBlock Text="分液方式" VerticalAlignment="Center" Margin="10,0"/>
|
||
|
|
<ComboBox Width="120" Height="25" ItemsSource="{Binding DrainageModeItems}" DisplayMemberPath="DisplayName" SelectedValuePath="Value"
|
||
|
|
SelectedValue="{Binding SelectedDrainageMode, Mode=TwoWay}" />
|
||
|
|
</StackPanel>
|
||
|
|
<ItemsControl Grid.Row="1" Grid.Column="1" ItemsSource="{Binding DrainageProperties}">
|
||
|
|
<ItemsControl.ItemContainerStyle>
|
||
|
|
<Style TargetType="ContentPresenter">
|
||
|
|
<Setter Property="Height" Value="32"/>
|
||
|
|
</Style>
|
||
|
|
</ItemsControl.ItemContainerStyle>
|
||
|
|
<ItemsControl.ItemTemplate >
|
||
|
|
<DataTemplate>
|
||
|
|
<StackPanel Orientation="Horizontal" Margin="5">
|
||
|
|
<TextBlock Text="{Binding Name}" Margin="10,0,0,0" Width="30" FontWeight="Bold"/>
|
||
|
|
<TextBlock Text="{Binding Description}" Width="350" />
|
||
|
|
<TextBox Style="{StaticResource textBoxStyle}" Text="{Binding Value,Mode=TwoWay}" Width="80" Height="22" />
|
||
|
|
</StackPanel>
|
||
|
|
</DataTemplate>
|
||
|
|
</ItemsControl.ItemTemplate>
|
||
|
|
</ItemsControl>
|
||
|
|
|
||
|
|
<!-- 底部添加确认/取消按钮 -->
|
||
|
|
<StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10" VerticalAlignment="Bottom">
|
||
|
|
<Button Style="{StaticResource okBtnStyle}" Content="确认" Click="BtnOK_Click" Width="80" Height="30" />
|
||
|
|
<Button Style="{StaticResource closeBtnStyle}" Content="取消" Click="BtnCancel_Click" Width="80" Height="30" />
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
</Grid>
|
||
|
|
</Window>
|