-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathSignInUrlPage.xaml
More file actions
67 lines (59 loc) · 2.29 KB
/
Copy pathSignInUrlPage.xaml
File metadata and controls
67 lines (59 loc) · 2.29 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
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
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="Coder.Desktop.App.Views.Pages.SignInUrlPage"
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"
mc:Ignorable="d">
<StackPanel
Orientation="Vertical"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Padding="20"
Spacing="10">
<TextBlock
Text="Coder Desktop"
FontSize="24"
VerticalAlignment="Center"
HorizontalAlignment="Center" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<TextBlock
Grid.Column="0"
Grid.Row="0"
Text="Server URL"
HorizontalAlignment="Right"
Padding="10 " />
<TextBox
Grid.Column="1"
Grid.Row="0"
HorizontalAlignment="Stretch"
PlaceholderText="https://coder.example.com"
Loaded="{x:Bind ViewModel.CoderUrl_Loaded, Mode=OneWay}"
LostFocus="{x:Bind ViewModel.CoderUrl_FocusLost, Mode=OneWay}"
Text="{x:Bind ViewModel.CoderUrl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
KeyDown="TextBox_KeyDown"/>
<TextBlock
Grid.Column="1"
Grid.Row="1"
Text="{x:Bind ViewModel.CoderUrlError, Mode=OneWay}"
Foreground="Red" />
</Grid>
<Button
Content="Next"
HorizontalAlignment="Center"
Command="{x:Bind ViewModel.UrlPage_NextCommand, Mode=OneWay}"
CommandParameter="{x:Bind SignInWindow}"
Style="{StaticResource AccentButtonStyle}" />
</StackPanel>
</Page>