| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 | <UserControl    x:Class="MECF.Framework.UI.Client.CenterViews.Editors.InputFileNameDialogView"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    xmlns:micro="clr-namespace:Caliburn.Micro"    d:DesignHeight="450"    d:DesignWidth="800"    mc:Ignorable="d">    <Border        Background="{DynamicResource Color_BG_Dialog_Inner}"        BorderBrush="Gray"        BorderThickness="0,1,0,0">        <Grid            Margin="50"            HorizontalAlignment="Center"            VerticalAlignment="Center">            <Grid.ColumnDefinitions>                <ColumnDefinition Width="90" />                <ColumnDefinition />            </Grid.ColumnDefinitions>            <Grid.RowDefinitions>                <RowDefinition Height="Auto" />                <RowDefinition Height="50" />                <RowDefinition Height="50" />                <RowDefinition Height="Auto" />            </Grid.RowDefinitions>            <Border                Grid.Row="0"                Height="50"                Padding="5,1"                Background="{DynamicResource Table_BG_Title}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="1,1,1,0"                Visibility="{Binding FolderVisibility}">                <TextBlock                    VerticalAlignment="Center"                    FontFamily="Arial"                    FontSize="16"                    Foreground="{DynamicResource FG_Black}"                    Text="Folder"                    TextWrapping="Wrap" />            </Border>            <Border                Grid.Column="1"                Height="50"                Padding="5,1"                Background="{DynamicResource Table_BG_Content}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="0,1,1,0"                Visibility="{Binding FolderVisibility}">                <ComboBox                    x:Name="cbFolder"                    Width="300"                    Height="35"                    Background="AliceBlue"                    FontSize="14"                    ItemsSource="{Binding FilePaths.Keys}"                    SelectedIndex="{Binding SelectIndex}" />            </Border>            <Border                Grid.Row="1"                Padding="5,1"                Background="{DynamicResource Table_BG_Title}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="1,1,1,1">                <TextBlock                    VerticalAlignment="Center"                    FontFamily="Arial"                    FontSize="16"                    Foreground="{DynamicResource FG_Black}"                    Text="Name"                    TextWrapping="Wrap" />            </Border>            <Border                Grid.Row="1"                Grid.Column="2"                Padding="5,1"                Background="{DynamicResource Table_BG_Content}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="0,1,1,1">                <TextBox                    x:Name="tbName"                    Width="300"                    Height="35"                    FontSize="14"                    Tag="NotClearFull"                    Text="{Binding FileName, UpdateSourceTrigger=PropertyChanged}"                    TextWrapping="NoWrap" />            </Border>            <Border                Grid.Row="2"                Padding="5,1"                Background="{DynamicResource Table_BG_Title}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="1,0,1,1">                <TextBlock                    VerticalAlignment="Center"                    FontFamily="Arial"                    FontSize="16"                    Foreground="{DynamicResource FG_Black}"                    Text="Comment"                    TextWrapping="Wrap" />            </Border>            <Border                Grid.Row="2"                Grid.Column="2"                Padding="5,1"                Background="{DynamicResource Table_BG_Content}"                BorderBrush="{DynamicResource Table_BD}"                BorderThickness="0,0,1,1">                <TextBox                    x:Name="tbComment"                    Width="300"                    Height="35"                    FontSize="14"                    Text="{Binding Comment, UpdateSourceTrigger=PropertyChanged}"                    TextWrapping="NoWrap" />            </Border>            <StackPanel                Grid.Row="3"                Grid.ColumnSpan="2"                Margin="0,10"                HorizontalAlignment="Center"                VerticalAlignment="Center"                Orientation="Horizontal">                <Button                    Width="90"                    Height="30"                    Content="OK" >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <micro:ActionMessage MethodName="OK" />                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>                <Button                    Width="90"                    Height="30"                    Margin="10,0,0,0"                    Content="Cancel">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Click">                            <micro:ActionMessage MethodName="Cancel" />                        </i:EventTrigger>                    </i:Interaction.Triggers>                </Button>            </StackPanel>        </Grid>    </Border></UserControl>
 |