| 1 |
<Page |
| 2 |
x:Class="OAuth2Live.MainPage" |
| 3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 |
xmlns:local="using:OAuth2Live" |
| 6 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 |
mc:Ignorable="d"> |
| 9 |
|
| 10 |
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> |
| 11 |
<Grid.RowDefinitions> |
| 12 |
<RowDefinition Height="Auto"/> |
| 13 |
<RowDefinition Height="*"/> |
| 14 |
</Grid.RowDefinitions> |
| 15 |
<Grid x:Name="Input" Grid.Row="0" Margin="8,8,8,8"> |
| 16 |
<StackPanel> |
| 17 |
<StackPanel Orientation="Horizontal" Margin="0,4,0,4"> |
| 18 |
<TextBlock TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" Text="OAuth 2.0 Live sample." VerticalAlignment="Center" Margin="4,0,4,0"/> |
| 19 |
<Button x:Name="GetTokenButton" Content="Get token (authorize)" Click="GetTokenButtonClick" Margin="4,0,4,0"/> |
| 20 |
<CheckBox x:Name="ImplicitGrantCheckBox" Content="Implicit grant" Unchecked="ImplicitGrantUnchecked" Checked="ImplicitGrantChecked"/> |
| 21 |
<Button x:Name="RefreshTokenButton" Content="Refresh token" Click="RefreshTokenButtonClick" Margin="4,0,4,0" IsEnabled="False"/> |
| 22 |
</StackPanel> |
| 23 |
<StackPanel Orientation="Horizontal" Margin="0,4,0,4"> |
| 24 |
<TextBlock TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" Text="Actions:" VerticalAlignment="Center" Margin="4,0,4,0"/> |
| 25 |
<Button x:Name="GetInfoButton" Content="Get user info" Click="GetInfoButtonClick" Margin="4,0,4,0" IsEnabled="False"/> |
| 26 |
<Button x:Name="GetContactsButton" Content="Get contacts" Click="GetContactsButtonClick" Margin="4,0,4,0" IsEnabled="False"/> |
| 27 |
<Button x:Name="GetEventsButton" Content="Get events" Click="GetEventsButtonClick" Margin="4,0,4,0" IsEnabled="False"/> |
| 28 |
</StackPanel> |
| 29 |
<TextBlock TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" Text="Token:" Margin="4,4,4,4"/> |
| 30 |
<TextBox x:Name="AccessToken" Height="128" VerticalAlignment="Top" Width="Auto" Text="" IsEnabled="False" TextWrapping="Wrap" Margin="4,4,4,4" TextChanged="AccessTokenTextChanged"/> |
| 31 |
<TextBox x:Name="DebugArea" Height="400" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="Auto" Margin="4,4,4,4" |
| 32 |
ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 33 |
AcceptsReturn="True"/> |
| 34 |
</StackPanel> |
| 35 |
</Grid> |
| 36 |
</Grid> |
| 37 |
</Page> |