<Window x:Class="TSManagementApp.Views.CreateTimeStampView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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:local="clr-namespace:TSManagementApp.Views"
        xmlns:props="clr-namespace:TSManagementApp.Properties"
        mc:Ignorable="d"
        Title="Vytvoření časového razítka" Height="250" Width="700"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner"
        ShowInTaskbar="False">
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBlock">
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Margin" Value="5,2.5"/>
                <Setter Property="Width" Value="150"/>
                <Setter Property="TextAlignment" Value="Right"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>
            <Style TargetType="TextBox" x:Key="BigWidth">
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Width" Value="400"/>
                <Setter Property="Margin" Value="5,2.5"/>
            </Style>
            <Style TargetType="TextBox" x:Key="SmallWidth">
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Width" Value="200"/>
                <Setter Property="Margin" Value="5,2.5"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
            </Style>
            <Style TargetType="Button" BasedOn="{StaticResource ButtonBlue}">
                <Setter Property="Height" Value="19"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Width" Value="70"/>
            </Style>
            <Style TargetType="RadioButton">
                <Setter Property="Margin" Value="5,2.5"/>
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="VerticalContentAlignment" Value="Center"/>
            </Style>
            <Style TargetType="CheckBox">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="5,0"/>
            </Style>
        </Grid.Resources>
        <StackPanel>
            <GroupBox Header="{x:Static props:Resources.CreateTsV_TsDetails}">
                <StackPanel HorizontalAlignment="Center">
                    <DockPanel>
                        <TextBlock Text="{x:Static props:Resources.CreateTsV_SourceFile}"/>
                        <TextBox Text="{Binding SourceFilePath}" Style="{StaticResource BigWidth}"/>
                        <Button Content="{x:Static props:Resources.CreateTsV_ButtonChooseSourceFile}" Command="{Binding CommandChangeSourceFile}"/>
                    </DockPanel>
                    <DockPanel>
                        <TextBlock Text="{x:Static props:Resources.CreateTsV_HashAlg}"/>
                        <ItemsControl ItemsSource="{Binding ShaAlogirthms}" Width="400" >
                            <ItemsControl.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal"/>
                                </ItemsPanelTemplate>
                            </ItemsControl.ItemsPanel>
                            <ItemsControl.ItemTemplate>
                                <DataTemplate>
                                    <RadioButton IsChecked="{Binding IsChecked}" Content="{Binding Name}" GroupName="TsaShaType"/>
                                </DataTemplate>
                            </ItemsControl.ItemTemplate>
                        </ItemsControl>
                    </DockPanel>
                    <DockPanel>
                        <TextBlock Text="{x:Static props:Resources.CreateTsV_NonceUsage}"/>
                        <RadioButton Content="{x:Static props:Resources.CreateTsV_Yes}" 
                                     IsChecked="{Binding NonceYesIsChecked}" GroupName="Nonce"/>
                        <RadioButton Content="{x:Static props:Resources.CreateTsV_No}" 
                                     IsChecked="{Binding NonceNoIsChecked}" GroupName="Nonce"/>
                    </DockPanel>
                    <DockPanel>
                        <TextBlock Text="{x:Static props:Resources.TsDetailsVM_OidPolicy}"/>
                        <CheckBox IsChecked="{Binding ManualOidPoliticIsChecked, Mode=TwoWay}"/>
                        <TextBox Text="{Binding ManualOidPolitic}" Style="{StaticResource SmallWidth}" 
                                 IsEnabled="{Binding ManualOidPoliticIsEnabled}"/>
                    </DockPanel>
                </StackPanel>
            </GroupBox>
            <Button Content="{x:Static props:Resources.CreateTsV_CreateTimeStamp}" Command="{Binding CommandCreateTimeStamp}" Style="{StaticResource ButtonBlue}" Width="200"/>
        </StackPanel>
    </Grid>
</Window>
