-
Notifications
You must be signed in to change notification settings - Fork 1
/
OpenUrl.xaml
61 lines (61 loc) · 2.24 KB
/
OpenUrl.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
53
54
55
56
57
58
59
60
61
<Window
x:Class="SheetReader.Wpf.Test.OpenUrl"
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:SheetReader.Wpf.Test"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Open Url"
FocusManager.FocusedElement="{Binding ElementName=UrlTextBox}"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterOwner"
mc:Ignorable="d">
<Grid MinWidth="300" MinHeight="100">
<Label
Margin="10,10,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="Url:" />
<TextBox
x:Name="UrlTextBox"
Width="290"
Height="23"
Margin="40,10,10,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
VerticalContentAlignment="Center"
Style="{StaticResource ResourceKey=ValidationTextBox}"
Text="{Binding Url, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
<Label
Margin="10,40,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="First Row Defines Columns:" />
<CheckBox
Margin="165,46,90,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
VerticalContentAlignment="Center"
IsChecked="{Binding FirstRowDefinesColumns}" />
<Button
Width="75"
Height="23"
Margin="0,0,90,10"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="OnOKClick"
Content="OK"
IsDefault="True"
IsEnabled="{Binding IsValid, UpdateSourceTrigger=PropertyChanged}" />
<Button
Width="75"
Height="23"
Margin="0,40,10,10"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Click="OnCancelClick"
Content="Cancel"
IsCancel="True" />
</Grid>
</Window>