-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindowConfirmation.xaml
52 lines (46 loc) · 2.17 KB
/
WindowConfirmation.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Window x:Class="KLC_Finch.WindowConfirmation"
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"
Title="WindowConfirmation"
Width="700"
Height="200"
ResizeMode="CanResizeWithGrip"
mc:Ignorable="d" WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<!-- Info -->
<TextBlock Margin="10"
FontSize="14"
Text="{Binding Label, Mode=OneWay, TargetNullValue=-, FallbackValue='Label here.'}"
TextWrapping="Wrap" />
<!-- Confirmation details -->
<TextBox Grid.Row="1" Background="#EEEEEE" Text="{Binding Payload, Mode=OneWay, TargetNullValue=-}" VerticalScrollBarVisibility="Auto" IsReadOnly="true" HorizontalScrollBarVisibility="Auto" TextWrapping="Wrap" MinHeight="150" />
<!-- Close Button -->
<Grid Grid.Row="2" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="chkDoNotAsk" Content="If I continue, do not ask me again for this session." Margin="10,0,0,0" VerticalAlignment="Center" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1">
<Button x:Name="btnCancel"
Margin="0,10,10,10"
Padding="5"
HorizontalAlignment="Right"
Content="No, cancel!" Click="btnCancel_Click" />
<Button x:Name="btnContinue"
Margin="0,10,10,10"
Padding="5"
HorizontalAlignment="Right"
Click="OnContinueAppClick"
Content="Continue" />
</StackPanel>
</Grid>
</Grid>
</Window>