mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-05-10 00:26:33 -04:00
Avalonia 12 uses compiled bindings by default. Converted all remaining reflection bindings into compiled bindings, Fixed binding errors
120 lines
2.9 KiB
XML
120 lines
2.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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" d:DesignWidth="720" d:DesignHeight="640"
|
|
Width="720" Height="640"
|
|
MinWidth="600" MinHeight="560"
|
|
CanResize="True"
|
|
WindowStartupLocation="CenterOwner"
|
|
x:Class="LibationAvalonia.Dialogs.Login.LoginExternalDialog"
|
|
xmlns:login="clr-namespace:LibationAvalonia.Dialogs.Login"
|
|
x:DataType="login:LoginExternalDialog"
|
|
Title="Audible Login External">
|
|
|
|
<Grid RowDefinitions="Auto,Auto,2*,Auto,*" ColumnDefinitions="*" Margin="5">
|
|
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Orientation="Horizontal">
|
|
|
|
<TextBlock Text="Locale: " />
|
|
<TextBlock Text="{Binding Account.Locale.Name}" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Orientation="Horizontal">
|
|
|
|
<TextBlock Text="Username: " />
|
|
<TextBlock Text="{Binding Account.AccountId}" />
|
|
|
|
</StackPanel>
|
|
|
|
<Grid
|
|
Margin="0,5,0,5"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
RowDefinitions="Auto,*,Auto"
|
|
ColumnDefinitions="*,Auto"
|
|
MinHeight="160">
|
|
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="Paste this URL into your browser:" />
|
|
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
MinHeight="160"
|
|
IsReadOnly="True"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding ExternalLoginUrl}" />
|
|
|
|
<Button
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="0,5,0,0"
|
|
Content="Copy URL to Clipboard"
|
|
Click="CopyUrlToClipboard_Click" />
|
|
|
|
<Button
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="0,5,0,0"
|
|
Content="Launch in Browser"
|
|
Click="LaunchInBrowser_Click" />
|
|
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Grid.Row="3"
|
|
Orientation="Vertical">
|
|
|
|
<TextBlock
|
|
TextWrapping="Wrap"
|
|
FontWeight="Bold"
|
|
Text="tl;dr : an ERROR on Amazon is GOOD. Sorry, I can't control their weird login" />
|
|
|
|
<TextBlock
|
|
TextWrapping="Wrap"
|
|
Text="Login with your Amazon/Audible credentials.
|
|

After login is complete, your browser will show you an error page similar to:
|
|

 Looking for Something?
|
|

 We're sorry. The Web address you entered is not a functioning page on our site
|
|

Don't worry -- this is ACTUALLY A SUCCESSFUL LOGIN.
|
|

Copy the current url from your browser's address bar and paste it here:
|
|
" />
|
|
</StackPanel>
|
|
|
|
<Grid
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="0,5,0,5"
|
|
RowDefinitions="*,Auto"
|
|
MinHeight="120">
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
MinHeight="100"
|
|
AcceptsReturn="True"
|
|
TextWrapping="Wrap"
|
|
Text="{Binding ResponseUrl, Mode=TwoWay}" />
|
|
|
|
<Button
|
|
Grid.Row="1"
|
|
Margin="0,5,0,0"
|
|
Classes="SaveButton"
|
|
HorizontalAlignment="Right"
|
|
Content="Submit"
|
|
Click="Submit_Click" />
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|