VPet/VPet-Simulator.Windows/WinDesign/winInputBox.xaml

26 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-03-27 16:45:14 +00:00
<pu:WindowX x:Class="VPet_Simulator.Windows.winInputBox"
2024-03-16 14:39:25 +00:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Foreground="{StaticResource PrimaryText}"
2024-03-16 14:39:25 +00:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:VPet_Simulator.Windows" mc:Ignorable="d" MinWidth="300"
xmlns:pu="https://opensource.panuon.com/wpf-ui" Title="winInputBox" ResizeMode="NoResize"
2024-03-27 16:45:14 +00:00
WindowStartupLocation="CenterScreen" Topmost="True" Style="{DynamicResource BaseWindowXStyle}" Background="{DynamicResource SecondaryLighter}"
2024-03-16 14:39:25 +00:00
Closing="Window_Closing" Closed="Window_Closed" SizeToContent="WidthAndHeight">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
2024-03-27 16:45:14 +00:00
<RowDefinition />
2024-03-16 14:39:25 +00:00
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
2024-03-27 16:45:14 +00:00
2024-03-16 14:39:25 +00:00
<TextBlock x:Name="Text" Text="文本消息内容就显示在这里,无论你是否接受,你也没法接受这样的弹窗?" Margin="20,5,20,5" VerticalAlignment="Top"
2024-03-27 16:45:14 +00:00
TextWrapping="Wrap" />
<TextBox x:Name="TextBoxInput" Grid.Row="1" Margin="20,0,20,10" VerticalAlignment="Top" FontSize="14" Style="{DynamicResource StandardTextBoxStyle}"
2024-03-16 14:39:25 +00:00
PreviewKeyDown="TextBoxInput_PreviewKeyDown" />
<Button Grid.Row="2" x:Name="ButtonOK" Content="确定" HorizontalAlignment="Right" Margin="5,0,0,0"
2024-03-27 16:45:14 +00:00
VerticalAlignment="Bottom" Height="30" Width="75" Foreground="{DynamicResource DARKPrimaryText}"
2024-03-16 14:39:25 +00:00
Background="{DynamicResource PrimaryDarker}" Click="ButtonYes_Click" FontSize="12"
pu:ButtonHelper.CornerRadius="5" />
</Grid>
2024-03-27 16:45:14 +00:00
</pu:WindowX>