<UserControl x:Class="GitHub.VisualStudio.Views.Dialog.LogOutRequiredView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ghfvs="https://github.com/github/VisualStudio"
             xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.14.0"
             Background="{DynamicResource {x:Static vs:ThemedDialogColors.WindowPanelBrushKey}}"
             Foreground="{DynamicResource {x:Static vs:ThemedDialogColors.WindowPanelTextBrushKey}}"
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">

    <Control.Resources>
        <ResourceDictionary Source="DialogStyles.xaml" />
    </Control.Resources>

    <DockPanel Margin="10">
    <ghfvs:OcticonImage DockPanel.Dock="Top"
                        Icon="mark_github"
                        Foreground="{DynamicResource GitHubVsWindowText}"
                        Margin="0,5"
                        Width="48"
                        Height="48" />
    
    <Label DockPanel.Dock="Top"
           Foreground="{DynamicResource GitHubVsWindowText}"
           HorizontalAlignment="Center"
           FontSize="16"
           Content="You need to sign out and back in." />
      
    <Button DockPanel.Dock="Bottom"
            Command="{Binding LogOut}"
            Content="Sign out"
            IsDefault="True"
            Margin="0 16"
            HorizontalAlignment="Center"/>

    <TextBlock TextWrapping="Wrap"
                TextAlignment="Center"
                HorizontalAlignment="Center"
                Text="We're sorry, but the operation you requested requires more permissions than we currently have. Please sign out and back in."/>
  </DockPanel>
</UserControl>
