<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"
             xmlns:mdxaml="https://github.com/whistyun/Markdown.Avalonia.Tight"
             xmlns:layout="clr-namespace:Artemis.UI.Screens.Workshop.Layout"
             xmlns:ui="clr-namespace:Artemis.UI"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Artemis.UI.Screens.Workshop.Layout.LayoutDescriptionView"
             x:DataType="layout:LayoutDescriptionViewModel">
    <UserControl.Resources>
        <ui:ArtemisLinkCommand x:Key="ArtemisLinkCommand" />
    </UserControl.Resources>
    <StackPanel Spacing="10">
        <Border Classes="card">
            <ContentControl Content="{CompiledBinding ReleaseInfoViewModel}"/>
        </Border>
        
        <Border Classes="card">
            <mdxaml:MarkdownScrollViewer Markdown="{CompiledBinding Entry.Description}" MarkdownStyleName="FluentAvalonia">
                <mdxaml:MarkdownScrollViewer.Engine>
                    <mdxaml:Markdown HyperlinkCommand="{StaticResource ArtemisLinkCommand}" />
                </mdxaml:MarkdownScrollViewer.Engine>
                <mdxaml:MarkdownScrollViewer.Styles>
                    <StyleInclude Source="/Styles/Markdown.axaml" />
                </mdxaml:MarkdownScrollViewer.Styles>
            </mdxaml:MarkdownScrollViewer>
        </Border>
    </StackPanel>
</UserControl>