Files
MaaAssistantArknights/src/MaaWpfGui/Views/Dialogs/TextDialogView.xaml
uye 7a92d322d8 refactor: 移动 TextDialogWithTimerUserControl 到 Dialogs 文件夹并统一命名
- 将 TextDialogWithTimerUserControl 从 Views/UserControl/ 移至 Views/Dialogs/,重命名为 TextWithTimerDialogView
- 将 TextDialogUserControl 重命名为 TextDialogView,统一 Dialogs 文件夹内的 *DialogView 命名约定
- 同步更新命名空间、x:Class、copyright 注释及 TaskQueueViewModel 中的引用
2026-06-25 15:43:38 +08:00

60 lines
1.9 KiB
XML

<hc:Window
x:Class="MaaWpfGui.Views.Dialogs.TextDialogView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:MaaWpfGui.Styles.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Name="TextDialogWindow"
Title="{DynamicResource RenameTask}"
Width="400"
Height="200"
Background="{DynamicResource RegionBrush}"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
mc:Ignorable="d">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- 提示文本 -->
<controls:TextBlock
x:Name="PromptTextBlock"
Grid.Row="0"
Margin="0,0,0,15"
Text="{DynamicResource RenameTaskPrompt}"
TextWrapping="Wrap" />
<!-- 输入框 -->
<TextBox
x:Name="InputTextBox"
Grid.Row="1"
Margin="0,0,0,20"
VerticalAlignment="Top"
FontSize="14" />
<!-- 按钮 -->
<StackPanel
Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal">
<Button
Width="80"
Height="32"
Margin="0,0,10,0"
Click="BtnOk_Click"
Content="{DynamicResource Ok}"
IsDefault="True" />
<Button
Width="80"
Height="32"
Content="{DynamicResource Cancel}"
IsCancel="True" />
</StackPanel>
</Grid>
</hc:Window>