66 lines
1.9 KiB
XML
66 lines
1.9 KiB
XML
<Window
|
|
x:Class="WxOrder.Framework.Commons.InputDialog"
|
|
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:WxOrder.Framework.Commons"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="输入"
|
|
Width="360"
|
|
ContentRendered="Window_ContentRendered"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
x:Name="PromptText"
|
|
Grid.Row="0"
|
|
Margin="0,0,0,8"
|
|
TextWrapping="Wrap" />
|
|
|
|
<TextBox
|
|
x:Name="InputBox"
|
|
Grid.Row="1"
|
|
Height="26"
|
|
VerticalContentAlignment="Center"
|
|
PreviewTextInput="InputBox_PreviewTextInput" />
|
|
|
|
<TextBlock
|
|
x:Name="ErrorText"
|
|
Grid.Row="2"
|
|
Margin="0,6,0,0"
|
|
Foreground="Red"
|
|
TextWrapping="Wrap"
|
|
Visibility="Collapsed" />
|
|
|
|
<StackPanel
|
|
Grid.Row="3"
|
|
Margin="0,16,0,0"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="80"
|
|
Height="28"
|
|
Click="Ok_Click"
|
|
Content="确定"
|
|
IsDefault="True" />
|
|
<Button
|
|
Width="80"
|
|
Height="28"
|
|
Margin="8,0,0,0"
|
|
Content="取消"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|