功能更新
This commit is contained in:
94
ShrlAlgoStudio/GuidGeneratorView.xaml
Normal file
94
ShrlAlgoStudio/GuidGeneratorView.xaml
Normal file
@@ -0,0 +1,94 @@
|
||||
<Window
|
||||
x:Class="ShrlAlgoStudio.GuidGeneratorView"
|
||||
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:local="clr-namespace:ShrlAlgoStudio"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="GUID 生成工具"
|
||||
Width="800"
|
||||
Height="450"
|
||||
mc:Ignorable="d">
|
||||
<Grid Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 标题 -->
|
||||
<TextBlock
|
||||
Margin="0,0,0,15"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Text="GUID 生成工具" />
|
||||
|
||||
<!-- 选项区域 -->
|
||||
<Grid Grid.Row="1" Margin="0,0,0,10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 格式选择 -->
|
||||
<ComboBox
|
||||
x:Name="FormatComboBox"
|
||||
VerticalContentAlignment="Center"
|
||||
SelectedIndex="0">
|
||||
<ComboBoxItem Content="默认 (xxxxxxxx-xxxx-xxxx-...)" Tag="D" />
|
||||
<ComboBoxItem Content="无连字符 (xxxxxxxxxxxxxxxx...)" Tag="N" />
|
||||
<ComboBoxItem Content="大括号 {xxxxxxxx-xxxx-...}" Tag="B" />
|
||||
<ComboBoxItem Content="圆括号 (xxxxxxxx-xxxx-...)" Tag="P" />
|
||||
<ComboBoxItem Content="Hex 格式 {0x00000000,0x0000...}" Tag="X" />
|
||||
</ComboBox>
|
||||
|
||||
<!-- 大小写选项 -->
|
||||
<CheckBox
|
||||
x:Name="UpperCaseCheckBox"
|
||||
Grid.Column="1"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
Content="大写" />
|
||||
</Grid>
|
||||
|
||||
<!-- 生成按钮 -->
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Height="35"
|
||||
Margin="0,0,0,15"
|
||||
Click="BtnGenerate_Click"
|
||||
Content="生成 GUID"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold" />
|
||||
|
||||
<!-- 结果显示区域 -->
|
||||
<TextBox
|
||||
x:Name="ResultTextBox"
|
||||
Grid.Row="3"
|
||||
Padding="5"
|
||||
Background="#FFF9F9F9"
|
||||
BorderBrush="#FFABADB3"
|
||||
FontSize="14"
|
||||
IsReadOnly="True"
|
||||
TextWrapping="Wrap"
|
||||
VerticalScrollBarVisibility="Auto" />
|
||||
|
||||
<!-- 底部操作栏 -->
|
||||
<Grid Grid.Row="4" Margin="0,10,0,0">
|
||||
<TextBlock
|
||||
x:Name="StatusText"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="Gray"
|
||||
Text="准备就绪" />
|
||||
<Button
|
||||
Height="30"
|
||||
Padding="10,5"
|
||||
HorizontalAlignment="Right"
|
||||
Click="BtnCopy_Click"
|
||||
Content="复制到剪贴板" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user