<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:vm="using:VeloeMinecraftLauncher.ViewModels"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="200"
		Width = "400" Height ="200"
        x:Class="VeloeMinecraftLauncher.Views.ErrorWindow"
		xmlns:titlebars="using:VeloeMinecraftLauncher.Views.TitleBar"
        Icon="/Assets/avalonia-logo.ico"
        Title="ErrorWindow"
		TransparencyLevelHint="AcrylicBlur"
		Background="Transparent"
		CanResize="True"
		ExtendClientAreaToDecorationsHint="True"
		ExtendClientAreaChromeHints="NoChrome"
		ExtendClientAreaTitleBarHeightHint="-1">

	<Design.DataContext>
		<vm:ErrorWindowViewModel/>
	</Design.DataContext>

	<Panel>
		<ExperimentalAcrylicBorder IsHitTestVisible="False">
			<ExperimentalAcrylicBorder.Material>
				<ExperimentalAcrylicMaterial
					BackgroundSource="Digger"
					TintColor="{Binding InterfaceColor}"
					TintOpacity="1"
					MaterialOpacity="{Binding MaterialOpacity}" />
			</ExperimentalAcrylicBorder.Material>
		</ExperimentalAcrylicBorder>
		<DockPanel>
			<titlebars:TitleBarWindow
			  IsSeamless="False"
			  IsIconVisible="False"
			  IsMaximizeVisible="False"
			  TitleText="Error Message"
			  DockPanel.Dock="Top">
			</titlebars:TitleBarWindow>
			<DockPanel 
				Margin="10">
			<TextBlock 
				Text="{Binding ErrorMessage}" 
				DockPanel.Dock="Top">
			</TextBlock>
			<TextBox 
				Text="{Binding ErrorTrace}" 
				IsReadOnly="True" 
				Margin="0 10 0  0" 
				DockPanel.Dock="Bottom"
				HorizontalAlignment="Stretch" 
				VerticalAlignment="Stretch">
			</TextBox>
			</DockPanel>
		</DockPanel>
	</Panel>
</Window>
