<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:vm="using:Needlework.Net.ViewModels.Pages.Home"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Needlework.Net.Views.Pages.Home.LibraryView"
			 x:DataType="vm:LibraryViewModel">
	<Border Background="{DynamicResource ControlFillColorDefaultBrush}"
			Padding="12"
			CornerRadius="4">
		<StackPanel>
			<TextBlock>
				<Run Text="{Binding Library.Language}"
					 FontWeight="Bold"/>
				<Bold> - </Bold>
				<Run Text="{Binding Library.Repo}"
					 FontWeight="Bold"/>
			</TextBlock>
			<TextBlock Text="{Binding Library.Description}"
					   IsVisible="{Binding Library.Description, Converter={StaticResource NullableToVisibilityConverter}}"
					   TextAlignment="Left"
					   TextWrapping="WrapWithOverflow"
					   Width="300"/>
			<HyperlinkButton Content="{Binding Library.Link}" NavigateUri="{Binding Library.Link}"
					Margin="0 4 0 0"/>
		</StackPanel>
	</Border>
</UserControl>
