-
Notifications
You must be signed in to change notification settings - Fork 71
/
MainPage.xaml
52 lines (47 loc) · 1.87 KB
/
MainPage.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
<Page x:Class="UWPClient.MainPage"
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">
<Grid Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="5*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.ColumnSpan="2"
Orientation="Horizontal"
HorizontalAlignment="Right"
Margin="0,12">
<Button Content="Login"
Click="Login_Click"
Margin="0,0,12,0"
Visibility="{Binding LoginVisibility}" />
<Button Content="QQ Login"
Click="QQLogin_Click"
Visibility="{Binding LoginVisibility}" />
<Button Content="Logout"
Click="Logout_Click"
Visibility="{Binding LogoutVisibility}" />
</StackPanel>
<StackPanel Grid.Row="1"
Grid.Column="0">
<TextBlock Text="ID Token" />
<TextBlock Text="{Binding IdToken}"
Margin="0,12,6,0"
TextWrapping="Wrap" />
</StackPanel>
<StackPanel Grid.Row="1"
Grid.Column="1"
Margin="6,0,0,0">
<TextBlock Text="Access Token" />
<TextBlock Text="{Binding AccessToken}"
Margin="0,12"
TextWrapping="Wrap" />
</StackPanel>
</Grid>
</Page>