<Window x:Class="SeqEditor.SubWin.ArrayVarConfig"
|
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:SeqEditor.SubWin"
|
mc:Ignorable="d"
|
WindowStartupLocation="CenterOwner"
|
SizeToContent="Height"
|
ResizeMode="NoResize"
|
xmlns:dp="clr-namespace:UILib.DpUtil;assembly=UILib"
|
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
FontSize="{DynamicResource GlobalFontSize}"
|
Title="{DynamicResource 参数设置}" Width="500">
|
<Window.Resources>
|
<ResourceDictionary>
|
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary Source="/UILib;component/Styles.xaml"/>
|
<ResourceDictionary Source="/UIStyle.xaml"/>
|
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary>
|
</Window.Resources>
|
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition/>
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Margin="15" dp:StackPanelHelper.ChildSpace="15">
|
<pu:FormGroup Header="{DynamicResource 名称}" x:Name="FgName" Orientation="Horizontal" GroupName="Array">
|
<TextBox Margin="5,0,0,0" Text="{Binding VarName,UpdateSourceTrigger=PropertyChanged}"/>
|
</pu:FormGroup>
|
|
<pu:FormGroup Header="{DynamicResource 类型}" Orientation="Horizontal" GroupName="Array">
|
<ComboBox Margin="5,0,0,0" x:Name="CbType" SelectedItem="{Binding VarType}"/>
|
</pu:FormGroup>
|
|
<pu:FormGroup Header="长度" Orientation="Horizontal" GroupName="Array">
|
<TextBox Margin="5,0,0,0" Text="{Binding Length,UpdateSourceTrigger=PropertyChanged}"/>
|
</pu:FormGroup>
|
</StackPanel>
|
|
|
|
<Border Grid.Row="1" Grid.ColumnSpan="2"
|
Background="{StaticResource TsPanelBrush}"
|
BorderBrush="{StaticResource BorderBrush}"
|
BorderThickness="0,1,0,0"
|
Padding="15,8">
|
<StackPanel Orientation="Horizontal"
|
HorizontalAlignment="Right">
|
|
<!-- 取消按钮 -->
|
<Button x:Name="BtnCancel"
|
Content="{DynamicResource 取消}"
|
Style="{StaticResource ActionButtonStyle}"
|
Width="75"
|
Margin="0,0,8,0"
|
IsCancel="True"/>
|
|
<!-- 确定按钮 -->
|
<Button x:Name="BtnOK"
|
Content="{DynamicResource 保存}"
|
Style="{StaticResource ActionButtonStyle}"
|
Width="75"
|
Background="{StaticResource PrimaryBrush}"
|
Foreground="White"
|
BorderBrush="{StaticResource PrimaryBrush}"
|
IsCancel="False"
|
Click="Button_Click"/>
|
</StackPanel>
|
</Border>
|
</Grid>
|
</Window>
|