<flyctrllib:WindowBigClose x:Class="FLY.Thick.Base.UI.WdFlyADAccess"
                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:my="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:FLY.Thick.Base.UI"
        Title="Window_graphfix" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
                 
        SizeToContent="WidthAndHeight" d:DataContext="{d:DesignInstance local:WdFlyADAccessVm}">
    <Window.Resources>
        <ResourceDictionary>
            <local:BytesConverter x:Key="bytesconv"/>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Styles.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

            <Grid >
                <StackPanel Margin="5,20">
                    <StackPanel Margin="{StaticResource ControlMargin}">
                <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="{StaticResource str.WdFlyADAccess.Code}" />
                <TextBlock Style="{StaticResource Styles.Text.FieldContent}" Text="{Binding Code, Converter={StaticResource bytesconv}}"   Tag="Full" MinWidth="400" />
            </StackPanel>
            <StackPanel Margin="{StaticResource ControlMargin}">
                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdFlyADAccess.Access}" />
                <StackPanel Orientation="Horizontal">
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Access, Converter={StaticResource bytesconv}}" Tag="Full"/>
                </StackPanel>
            </StackPanel>
            <Button Style="{StaticResource Styles.Button.Apply}" Command="{Binding ApplyCmd}" />
        </StackPanel>
            </Grid>

</flyctrllib:WindowBigClose>
