<UserControl x:Class="BeWo.View.Controls.MerkzeichenSelectionControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="230" d:DesignWidth="300">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<ListBox Grid.Row="0" x:Name="listbox_result" ItemsSource="{Binding Path=PossibleMerkzeichen}" Background="{DynamicResource ObjectEditBackgroundBrush}">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Grid>
						<Border BorderBrush="{x:Null}" Height="23" CornerRadius="5">
							<CheckBox Margin="6,0,0,0" VerticalAlignment="Center" FontFamily="Microsoft Sans Serif" Tag="{Binding}" IsChecked="{Binding Path=IsChecked}" 
									  Content="{Binding Path=Name}" Checked="MerkzeichenCB_OnChecked" Unchecked="MerkzeichenCB_OnChecked"/>
						</Border>
					</Grid>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>

		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>
			<Button HorizontalAlignment="Right" Grid.Column="1" Margin="3" Content="Schließen" Width="70" Height="25" Command="ApplicationCommands.Close" />
		</Grid>
	</Grid>
</UserControl>
