121 lines
5.2 KiB
XML
121 lines
5.2 KiB
XML
<EgtWPFLib5:EgtCustomWindow x:Class="NewAddFeatureWndV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
|
WindowStyle="None" ResizeMode="NoResize"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterOwner"
|
|
IsClosable="False"
|
|
IsMinimizable="False"
|
|
IsResizable="False"
|
|
Title="AddProcess">
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
Height="50">
|
|
<TextBlock Text="{Binding Process_Msg}"
|
|
Style="{StaticResource ListTextBlock}"/>
|
|
<Image Source="{Binding sDrawMacro}"
|
|
Width="80"
|
|
Margin="5,0,5,5"/>
|
|
</StackPanel>
|
|
<ListBox ItemsSource="{Binding PRCListView}"
|
|
SelectedItem="{Binding nSelPRC}"
|
|
Grid.Row="1"
|
|
BorderThickness="0"
|
|
Height="585"
|
|
Width="260"
|
|
HorizontalAlignment="Left"
|
|
Margin="5">
|
|
<ListBox.Resources>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListBoxItem">
|
|
<Border Name="Border" Padding="2" SnapsToDevicePixels="True">
|
|
<ContentPresenter/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{DynamicResource {x:Static SystemColors.HotTrackBrushKey}}"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontSize" Value="15"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListBox.Resources>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding ghDesc}"
|
|
ToolTip="{Binding ghDesc}"
|
|
HorizontalAlignment="Left"
|
|
Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}"
|
|
Style="{StaticResource OptionTextBlock}"/>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
<TextBlock Text="{Binding Macro_Msg}"
|
|
Grid.Column="1"
|
|
Style="{StaticResource ListTextBlock}"/>
|
|
<ListBox ItemsSource="{Binding NewMacroList}"
|
|
SelectedItem="{Binding sSelMacroItem}"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
BorderThickness="0"
|
|
Width="980"
|
|
Height="610"
|
|
Margin="5">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel IsItemsHost="True" Orientation="Horizontal"/>
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{Binding sMacroName}"
|
|
Margin="5"
|
|
FontSize="14"
|
|
Style="{StaticResource OptionTextBlock}"/>
|
|
<Image Source="{Binding sMacroDrawPath}"
|
|
Grid.Row="1"
|
|
Width="300"
|
|
Margin="5,0,5,5"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
<UniformGrid Columns="2"
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="5">
|
|
<Button Content="Ok"
|
|
Command="{Binding Ok_Command}"
|
|
IsDefault="True"
|
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
|
<Button Content="Cancel"
|
|
IsCancel="True"
|
|
Style="{StaticResource EgtWPFLib5_InputButton}"/>
|
|
</UniformGrid>
|
|
</Grid>
|
|
</EgtWPFLib5:EgtCustomWindow>
|