-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputBox.xaml
More file actions
27 lines (27 loc) · 1.36 KB
/
InputBox.xaml
File metadata and controls
27 lines (27 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Window x:Class="NotepadWPF.InputBox"
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"
xmlns:local="clr-namespace:NotepadWPF"
mc:Ignorable="d"
Title="Input Box" SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterScreen">
<Grid Margin="15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Name="QuestionLabel" Grid.Column="1"></Label>
<TextBox Name="AnswerTextBox" Height="25" Grid.Column="1" Grid.Row="1" MinWidth="300" />
<WrapPanel Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Right" Margin="0,15,0,0">
<Button IsDefault="True" Name="OKButton" Height="Auto" MinWidth="60" Margin="0,0,10,0" Content="_OK" Click="OKButton_Click" />
<Button IsCancel="True" Height="35" MinWidth="60" Content="_Cancel" />
</WrapPanel>
</Grid>
</Window>