mirror of
https://github.com/ShrlAlgo/AddinManager.git
synced 2026-03-08 00:48:56 +00:00
107 lines
3.8 KiB
Plaintext
107 lines
3.8 KiB
Plaintext
|
|
<Window
|
||
|
|
x:Class="AddInManager.Wpf.AssemblySelectorWindow"
|
||
|
|
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"
|
||
|
|
Title="程序集文件选择器"
|
||
|
|
Width="420"
|
||
|
|
Height="220"
|
||
|
|
Background="{DynamicResource BackgroundBrush}"
|
||
|
|
ResizeMode="NoResize"
|
||
|
|
ShowInTaskbar="False"
|
||
|
|
SizeToContent="Height"
|
||
|
|
WindowStartupLocation="CenterOwner"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
|
||
|
|
<Window.Resources>
|
||
|
|
<ResourceDictionary>
|
||
|
|
<ResourceDictionary.MergedDictionaries>
|
||
|
|
<ResourceDictionary Source="Styles/ModernStyles.xaml" />
|
||
|
|
</ResourceDictionary.MergedDictionaries>
|
||
|
|
</ResourceDictionary>
|
||
|
|
</Window.Resources>
|
||
|
|
|
||
|
|
<Border Margin="5" Style="{StaticResource WindowContainer}">
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!-- 标题说明 -->
|
||
|
|
<TextBlock
|
||
|
|
Grid.Row="0"
|
||
|
|
Margin="0,0,0,8"
|
||
|
|
Foreground="{DynamicResource SecondaryBrush}"
|
||
|
|
Text="以下程序集名称无法自动解析:" />
|
||
|
|
|
||
|
|
<!-- 程序集名称显示 -->
|
||
|
|
<TextBox
|
||
|
|
x:Name="assemNameTextBox"
|
||
|
|
Grid.Row="1"
|
||
|
|
Height="45"
|
||
|
|
Margin="0,0,0,15"
|
||
|
|
FontWeight="Bold"
|
||
|
|
IsReadOnly="True"
|
||
|
|
TextWrapping="Wrap" />
|
||
|
|
|
||
|
|
<!-- 选择提示 -->
|
||
|
|
<TextBlock
|
||
|
|
Grid.Row="2"
|
||
|
|
Margin="0,0,0,8"
|
||
|
|
Foreground="{DynamicResource SecondaryBrush}"
|
||
|
|
Text="请手动选择程序集文件:" />
|
||
|
|
|
||
|
|
<!-- 文件路径输入 -->
|
||
|
|
<Grid Grid.Row="3" Margin="0,0,0,5">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="*" />
|
||
|
|
<ColumnDefinition Width="Auto" />
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<TextBox
|
||
|
|
x:Name="assemPathTextBox"
|
||
|
|
Grid.Column="0"
|
||
|
|
Style="{StaticResource FilePathTextBox}" />
|
||
|
|
<Button
|
||
|
|
x:Name="browseButton"
|
||
|
|
Grid.Column="1"
|
||
|
|
Width="70"
|
||
|
|
Click="BrowseButton_Click"
|
||
|
|
Content="浏览..."
|
||
|
|
Style="{StaticResource BrowseButton}" />
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
<!-- 按钮区域 -->
|
||
|
|
<StackPanel
|
||
|
|
Grid.Row="5"
|
||
|
|
Margin="0,5,0,0"
|
||
|
|
HorizontalAlignment="Right"
|
||
|
|
Orientation="Horizontal">
|
||
|
|
<Button
|
||
|
|
x:Name="okButton"
|
||
|
|
Width="75"
|
||
|
|
Height="32"
|
||
|
|
Margin="0,0,10,0"
|
||
|
|
Click="OkButton_Click"
|
||
|
|
Content="确定"
|
||
|
|
IsDefault="True"
|
||
|
|
Style="{StaticResource ActionButton}"
|
||
|
|
Tag="Primary" />
|
||
|
|
<Button
|
||
|
|
x:Name="cancelButton"
|
||
|
|
Width="75"
|
||
|
|
Height="32"
|
||
|
|
Click="CancelButton_Click"
|
||
|
|
Content="取消"
|
||
|
|
Foreground="{DynamicResource SecondaryBrush}"
|
||
|
|
IsCancel="True" />
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
</Window>
|