<flyctrllib:WindowBigClose x:Class="FLY.Thick.Base.UI.WdWarningUnityNames"
                            xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:FLY.Thick.Base.UI"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                            WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <local:WdWarningUnityNamesVmUt x:Key="viewModel"/>
        </ResourceDictionary>
    </Window.Resources>

    <StackPanel Margin="5,20" d:DataContext="{StaticResource viewModel}">
        <TextBlock Style="{StaticResource Styles.Card.Title2}" Text="{StaticResource str.PgErrorTable.WarningNames}" />
        <ListBox ItemsSource="{Binding WarningNames}" Margin="{StaticResource ControlMargin}" MinWidth="400" Height="400" Grid.Row="1" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}">
                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsRegistered}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="{Binding UnityName}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Style="{StaticResource Styles.Button.Apply}" Grid.Row="2"
                    Command="{Binding OkCmd}" />
    </StackPanel>

    </flyctrllib:WindowBigClose >
