<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Borepin.Page.AddServerProcess.ChooseAuthTypePage"
             xmlns:converters="clr-namespace:Borepin.Converter"
             xmlns:resource_text="clr-namespace:Borepin.Resources.Text"
             Title="{x:Static resource_text:TextResource.TITLE_ConnectToServer}">
    <ContentPage.Resources>
        <ResourceDictionary>
            <converters:InvertBoolConverter x:Key="InvertBoolConverter"/>
        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <StackLayout Padding="20">
            <StackLayout IsVisible="{Binding IsBusy}">
                <ActivityIndicator IsRunning="{Binding IsBusy}"></ActivityIndicator>
            </StackLayout>
            <StackLayout IsVisible="{Binding IsBusy, Converter={StaticResource InvertBoolConverter}}">
                <Label Text="{x:Static resource_text:TextResource.AddServerProcess_ChooseAuthTypePage_SignIn}" Style="{StaticResource Style_Label_Property_Title}"></Label>
                <Button Text="{x:Static resource_text:TextResource.AddServerProcess_ChooseAuthTypePage_LoginPassword}" Command="{Binding AuthPlainCommand}" Style="{StaticResource Style_Button_Primary}"/>
                <Label Text="{x:Static resource_text:TextResource.OR}" Style="{StaticResource Style_Label_Property_Title}"></Label>
                <Button Text="{x:Static resource_text:TextResource.AddServerProcess_ChooseAuthTypePage_LoginCard}" Style="{StaticResource Style_Button_Primary}" IsEnabled="False"/>

                <Label Text="{x:Static resource_text:TextResource.AddServerProcess_ChooseAuthTypePage_SignUp}" Style="{StaticResource Style_Label_Property_Title}"></Label>
                <Button Text="{x:Static resource_text:TextResource.AddServerProcess_ChooseAuthTypePage_Register}" Style="{StaticResource Style_Button_Primary}" IsEnabled="False"/>
            </StackLayout>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>