forked from tillias/wpFolderPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInputDialog.xaml
24 lines (23 loc) · 1.35 KB
/
InputDialog.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window x:Class="FolderPickerLib.InputDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen"
x:Name="dialog"
Title="InputDialog" Height="153" Width="342">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Margin="8"
Text="{Binding ElementName=dialog,Path=Message}" VerticalAlignment="Center" HorizontalAlignment="Left" TextWrapping="Wrap"/>
<TextBox Grid.Row="1" Margin="8" x:Name="InputTextBox"
Text="{Binding ElementName=dialog,Path=InputText,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="False"
VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="8"
Grid.Row="2">
<Button Content="Yes" Click="Button_Click" Width="75" VerticalAlignment="Center" Margin="4"/>
<Button Content="No" IsCancel="True" Width="75" VerticalAlignment="Center" Margin="4"/>
</StackPanel>
</Grid>
</Window>