<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.Endpoints"
			 xmlns:controls="using:Needlework.Net.Controls"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Needlework.Net.Views.Pages.Endpoints.PropertyClassView"
			 x:DataType="vm:PropertyClassViewModel">
	<StackPanel>
		<TextBlock FontSize="12" FontWeight="DemiBold" Text="{Binding Id}" Margin="0 0 0 4"/>
		<controls:Card IsVisible="{Binding PropertyFields, Converter={StaticResource EnumerableToVisibilityConverter}}">
			<DataGrid
					ItemsSource="{Binding PropertyFields}"
					AutoGenerateColumns="True"
					IsReadOnly="True"
					GridLinesVisibility="Horizontal">
			</DataGrid>
		</controls:Card>
		<controls:Card Margin="0 0 0 8" IsVisible="{Binding PropertyEnums, Converter={StaticResource EnumerableToVisibilityConverter}}">
			<DataGrid
				ItemsSource="{Binding PropertyEnums}"
				AutoGenerateColumns="True"
				IsReadOnly="True"
				GridLinesVisibility="Horizontal">
			</DataGrid>
		</controls:Card>
	</StackPanel>
</UserControl>
