<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="600" d:DesignHeight="450"
		MinWidth="600" MinHeight="450"
		MaxWidth="600" MaxHeight="450"
		Width="600" Height="450"
        x:Class="LibationAvalonia.Dialogs.MessageBoxAlertAdminDialog"
		xmlns:controls="clr-namespace:LibationAvalonia.Controls"
        Title="MessageBoxAlertAdminDialog"
		WindowStartupLocation="CenterOwner">

	<Grid RowDefinitions="Auto,*,Auto,Auto">

		<Grid
			Grid.Column="0"
			Margin="10,10,10,0"
			ColumnDefinitions="Auto,*">
			
			<Image Grid.Column="0" Width="64" Height="64" Source="/Assets/MBIcons/Error_64.png" />
			<TextBlock
				Grid.Column="1"
				Margin="10"
				TextWrapping="Wrap"
				Text="{Binding ErrorDescription}" />
		</Grid>

		<TextBox
			Grid.Row="1"
			Margin="10,10,10,0"
			IsReadOnly="True"
			TextWrapping="Wrap"
			Text="{Binding ExceptionMessage}" />
		
		<Grid
			Grid.Row="2"
			Margin="10,10,10,0"
			ColumnDefinitions="Auto,*">

			<TextBlock
				Grid.Column="0"
				Text="If you'd like to report this error to an advinistrator:&#xa;&#xa;Step 1: Go to Libation's &quot;issues&quot; page on github&#xa;Step 2: Find your log files&#xa;Setp 3: Click &quot;New issue&quot; button&#xa;Step 4: Drag/drop your log files" />

			<StackPanel
				Margin="50,0,0,0"
				Grid.Column="1"
				HorizontalAlignment="Center"
				VerticalAlignment="Center"
				Orientation="Vertical">
				
				<controls:LinkLabel
					Margin="10"
					Tapped="GoToGithub_Tapped"
					Text="Click to go to github" />

				<controls:LinkLabel
					Margin="10"
					Tapped="GoToLogs_Tapped"
					Text="Click to open log files folder" />
				
			</StackPanel>
		</Grid>

		<Button
			Grid.Row="3"
			HorizontalAlignment="Center"
			Margin="10"
			Name="OkButton"
			Classes="SaveButton"
			Content="Ok"
			Click="OkButton_Clicked" />
	</Grid>
</Window>
