<UserControl 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="800" d:DesignHeight="450"
             x:Class="MayShow.Views.WarningView"
             xmlns:models="clr-namespace:MayShow.Models"
             xmlns:vm="clr-namespace:MayShow.ViewModels"
             xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
             x:DataType="vm:WarningViewModel">
    <StackPanel Orientation="Vertical"
                Spacing="4">
        <TextBlock TextAlignment="Center"
                   FontWeight="Bold"
                   FontSize="18"
                   Text="Error!"/>
        <TextBlock TextAlignment="Center"
                   FontWeight="Bold"
                   TextWrapping="Wrap"
                   FontSize="14"
                   MaxWidth="350"
                   Text="{Binding Error}"/>
        <Button Command="{Binding Close}"
                Classes="accent"
                Content="Close"
                HorizontalAlignment="Right"
                Margin="0,4,4,4"/>
    </StackPanel>
</UserControl>
