<UserControl
    x:Class="PDF_Office.Views.Dialog.SettingsDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:compositecontrol="clr-namespace:PDF_Office.CustomControl.CompositeControl"
    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert"
    xmlns:dialog="clr-namespace:PDF_Office.ViewModels.Dialog"
    xmlns:local="clr-namespace:PDF_Office.Views.Dialog"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://prismlibrary.com/"
    Width="700"
    Height="600"
    d:DataContext="{d:DesignInstance Type=dialog:SettingsDialogViewModel}"
    d:DesignHeight="800"
    d:DesignWidth="700"
    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/PDF Office;component/Styles/RadioButtonStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <dataconvert:BoolToBrushConvert x:Key="BoolToBrushConvert" />
            <dataconvert:BoolToVisible x:Key="BoolToVisible" />
            <dataconvert:UnVisivleConvert x:Key="UnvisibleConvert" />

            <PathGeometry x:Key="Ic_GeneralButtonPath" Figures="M7.66072 0L7.55655 0.00779096C7.28392 0.0488956 7.05692 0.249053 6.98638 0.522415L6.43929 2.63786L6.31071 2.69143L4.42927 1.58159C4.1557 1.42025 3.80763 1.46444 3.58306 1.68902L1.68902 3.58306L1.61331 3.67268C1.45661 3.89349 1.44042 4.1899 1.58159 4.42927L2.69143 6.31071L2.63786 6.43929L0.522415 6.98638C0.214883 7.06574 0 7.34311 0 7.66072V10.3393L0.00778641 10.4434C0.0488673 10.716 0.248912 10.9429 0.522164 11.0136L2.63786 11.5607L2.69143 11.6882L1.58159 13.5707C1.42025 13.8443 1.46444 14.1924 1.68902 14.4169L3.58306 16.311L3.67268 16.3867C3.89349 16.5434 4.1899 16.5596 4.42927 16.4184L6.31071 15.3075L6.43821 15.3611L6.98644 17.4778C7.06589 17.7852 7.3432 18 7.66072 18H10.3393L10.4434 17.9922C10.7159 17.9512 10.9428 17.7512 11.0135 17.4781L11.5607 15.3611L11.6882 15.3075L13.5707 16.4184C13.8443 16.5797 14.1924 16.5356 14.4169 16.311L16.311 14.4169L16.3867 14.3273C16.5434 14.1065 16.5596 13.8101 16.4184 13.5707L15.3075 11.6882L15.3611 11.5607L17.4781 11.0135C17.7854 10.934 18 10.6567 18 10.3393V7.66072L17.9922 7.55658C17.9511 7.28402 17.7511 7.05706 17.4778 6.98644L15.3611 6.43821L15.3075 6.31071L16.4184 4.42927C16.5797 4.1557 16.5356 3.80763 16.311 3.58306L14.4169 1.68902L14.3273 1.61331C14.1065 1.45661 13.8101 1.44042 13.5707 1.58159L11.6882 2.69143L11.5596 2.63786L11.0136 0.522259C10.9342 0.214804 10.6568 0 10.3393 0H7.66072ZM8.19954 1.39291H9.79918L10.3025 3.33775C10.3613 3.5652 10.5309 3.74765 10.7534 3.82299C10.982 3.90039 11.2049 3.9929 11.4208 4.09981L11.5291 4.14256C11.7135 4.19809 11.9148 4.17517 12.0836 4.07557L13.8128 3.0547L14.9442 4.18612L13.9244 5.91632C13.8049 6.11897 13.7957 6.36826 13.9001 6.5791C14.0071 6.79504 14.0996 7.01795 14.177 7.24655L14.2156 7.33853C14.3054 7.51531 14.4673 7.64709 14.6623 7.69748L16.607 8.1997V9.79934L14.6617 10.3038C14.4344 10.3626 14.252 10.5321 14.1766 10.7545C14.0993 10.9828 14.0069 11.2054 13.9001 11.421L13.8574 11.5292C13.8019 11.7136 13.8248 11.9149 13.9244 12.0838L14.9442 13.8129L13.8128 14.9443L12.0836 13.9245C11.881 13.805 11.6317 13.7959 11.4208 13.9003C11.2052 14.0071 10.9826 14.0995 10.7543 14.1768L10.6624 14.2155C10.4858 14.3052 10.354 14.467 10.3036 14.6619L9.79918 16.6072H8.19954L7.69733 14.6625C7.63853 14.435 7.46897 14.2525 7.2464 14.1771C7.01779 14.0997 6.79488 14.0072 6.57894 13.9003L6.47071 13.8575C6.2863 13.802 6.08504 13.8249 5.91616 13.9245L4.18597 14.9443L3.05454 13.8129L4.07542 12.0838C4.19493 11.8811 4.20404 11.6318 4.09965 11.421C3.99274 11.2051 3.90023 10.9822 3.82283 10.7536L3.78416 10.6616C3.69441 10.4848 3.53246 10.353 3.33745 10.3026L1.39275 9.79934V8.1997L3.33684 7.69862C3.5645 7.63987 3.74715 7.47022 3.82251 7.2475C3.89998 7.01857 3.99259 6.79534 4.09965 6.5791L4.1424 6.47087C4.19794 6.28646 4.17501 6.0852 4.07542 5.91632L3.05454 4.18612L4.18597 3.0547L5.91616 4.07557C6.11882 4.19508 6.3681 4.2042 6.57894 4.09981C6.79518 3.99275 7.01841 3.90013 7.24734 3.82267L7.33938 3.78399C7.51627 3.69421 7.64811 3.53214 7.69846 3.337L8.19954 1.39291ZM8.9999 5.89291C7.28387 5.89291 5.89275 7.28402 5.89275 9.00005C5.89275 10.7161 7.28387 12.1072 8.9999 12.1072C10.7159 12.1072 12.107 10.7161 12.107 9.00005C12.107 7.28402 10.7159 5.89291 8.9999 5.89291ZM8.99972 7.28578C9.9465 7.28578 10.714 8.0533 10.714 9.00007C10.714 9.94684 9.9465 10.7144 8.99972 10.7144C8.05295 10.7144 7.28544 9.94684 7.28544 9.00007C7.28544 8.0533 8.05295 7.28578 8.99972 7.28578Z" />
            <PathGeometry x:Key="Ic_DisplayButtonPath" Figures="M18.998 9.99902C18.998 14.9132 14.922 18.998 9.99902 18.998C5.08485 18.998 1 14.9132 1 9.99902C1 5.07603 5.09367 1 9.99902 1C14.9308 1 18.998 5.07603 18.998 9.99902ZM2.49974 9.99896C2.49092 14.1632 5.83468 17.4981 9.99893 17.4981V2.49977C5.8435 2.49977 2.50857 5.8347 2.49974 9.99896Z" />
            <PathGeometry x:Key="Ic_MarkupButtonPath" Figures="M3.5 3H16.5C16.7761 3 17 3.22386 17 3.5V16.5C17 16.7761 16.7761 17 16.5 17H3.5C3.22386 17 3 16.7761 3 16.5V3.5C3 3.22386 3.22386 3 3.5 3ZM1.5 3.5C1.5 2.39543 2.39543 1.5 3.5 1.5H16.5C17.6046 1.5 18.5 2.39543 18.5 3.5V16.5C18.5 17.6046 17.6046 18.5 16.5 18.5H3.5C2.39543 18.5 1.5 17.6046 1.5 16.5V3.5ZM8.06104 14H6.3584L9.04932 6.24951H10.9561L13.6523 14H11.9443L11.3696 12.1201H8.63574L8.06104 14ZM10.0537 7.79639H9.95703L9.00635 10.9062H10.999L10.0537 7.79639Z" />
            <PathGeometry x:Key="Ic_InformationButtonPath" Figures="M18 3.5H2C1.72386 3.5 1.5 3.72386 1.5 4V16C1.5 16.2761 1.72386 16.5 2 16.5H18C18.2761 16.5 18.5 16.2761 18.5 16V4C18.5 3.72386 18.2761 3.5 18 3.5ZM2 2C0.895431 2 0 2.89543 0 4V16C0 17.1046 0.895431 18 2 18H18C19.1046 18 20 17.1046 20 16V4C20 2.89543 19.1046 2 18 2H2ZM17 8.6H12V7.4H17V8.6ZM12 11.6H15V10.4H12V11.6ZM6.5 9.8C7.21797 9.8 7.8 9.21797 7.8 8.5C7.8 7.78203 7.21797 7.2 6.5 7.2C5.78203 7.2 5.2 7.78203 5.2 8.5C5.2 9.21797 5.78203 9.8 6.5 9.8ZM7.8529 10.6027C8.54304 10.1577 9 9.38221 9 8.5C9 7.11929 7.88071 6 6.5 6C5.11929 6 4 7.11929 4 8.5C4 9.38221 4.45696 10.1577 5.1471 10.6027C3.58586 11.0832 2.4 12.3743 2.4 14H3.6C3.6 12.758 4.80827 11.6 6.5 11.6C8.19173 11.6 9.4 12.758 9.4 14H10.6C10.6 12.3743 9.41414 11.0832 7.8529 10.6027Z" />
            <Style x:Key="Label" TargetType="Label">
                <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="FontSize" Value="12" />
                <Setter Property="FontWeight" Value="Bold" />
            </Style>
            <Style x:Key="Label2" TargetType="Label">
                <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="FontSize" Value="14" />
            </Style>
            <Style x:Key="RadioButtonStyle1" TargetType="{x:Type RadioButton}">
                <Setter Property="FocusVisualStyle" Value="{x:Null}" />
                <Setter Property="Background" Value="{StaticResource color.icon.checkbox-radio.norm.bg}" />
                <Setter Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.norm.border}" />
                <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="Padding" Value="8,0,0,0" />
                <Setter Property="FontSize" Value="14" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RadioButton}">
                            <Grid
                                x:Name="templateRoot"
                                Background="Transparent"
                                SnapsToDevicePixels="True">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Border
                                    x:Name="radioButtonBorder"
                                    Width="14"
                                    Height="14"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="100">
                                    <Grid x:Name="markGrid" Margin="1.8">
                                        <Ellipse
                                            x:Name="optionMark"
                                            MinWidth="6"
                                            MinHeight="6"
                                            Fill="{StaticResource color.icon.checkbox-radio.sel.bg}"
                                            Opacity="0" />
                                    </Grid>
                                </Border>
                                <ContentPresenter
                                    x:Name="contentPresenter"
                                    Grid.Column="1"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    Focusable="False"
                                    RecognizesAccessKey="True"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="true">
                                    <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource color.icon.checkbox-radio.dis.bg}" />
                                    <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.dis.border}" />
                                    <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource color.icon.checkbox-radio.dis.fill}" />
                                </Trigger>
                                <Trigger Property="IsChecked" Value="true">
                                    <Setter TargetName="optionMark" Property="Opacity" Value="1" />
                                    <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource color.icon.checkbox-radio.hov.border}" />
                                </Trigger>
                                <Trigger Property="IsChecked" Value="{x:Null}">
                                    <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TabControl
            Grid.Row="1"
            BorderThickness="0"
            SelectedIndex="{Binding ModeSelectedIndex, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}"
            Style="{StaticResource InfoTabControl}"
            TabStripPlacement="Left">
            <TabItem x:Name="TabItemGeneral" Style="{StaticResource InfoTabItem}">
                <TabItem.Header>
                    <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
                        <Path
                            Margin="0,0,8,0"
                            Data="{StaticResource Ic_GeneralButtonPath}"
                            Fill="{Binding ElementName=TabItemGeneral, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
                        <TextBlock
                            VerticalAlignment="Center"
                            Foreground="{Binding ElementName=TabItemGeneral, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
                            Text="General" />
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">

                    <StackPanel Margin="16,10,10,0">
                        <Label Content="文档" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,10,0,18"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <StackPanel>
                                <CheckBox
                                    Margin="8"
                                    Content="APP启动时打开上次未关闭的文档"
                                    Foreground="{StaticResource color.sys.text.neutral.lv1}"
                                    IsChecked="{Binding Descript.OpenUnClosedFileWhenOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                <CheckBox
                                    Margin="8"
                                    Content="文档打开时恢复上次视图设置"
                                    Foreground="{StaticResource color.sys.text.neutral.lv1}"
                                    IsChecked="{Binding Descript.RecoveryViewWhenOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                <Label
                                    Margin="8"
                                    Content="最近打开中文档最多显示数量:"
                                    Style="{StaticResource Label2}" />
                                <StackPanel Margin="8" Orientation="Horizontal">
                                    <cus:NumericUpDown
                                        Width="120"
                                        HorizontalAlignment="Left"
                                        BorderThickness="0"
                                        FontSize="14"
                                        Foreground="{StaticResource color.field.text.act}"
                                        Maximum="50"
                                        Minimum="10"
                                        Value="{Binding Descript.FileCountInRecentFiles, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    <TextBlock
                                        Margin="8,0"
                                        VerticalAlignment="Center"
                                        Foreground="{StaticResource color.sys.text.neutral.lv3}"
                                        Text="10 to 50" />
                                </StackPanel>
                                <StackPanel Margin="8" Orientation="Horizontal">
                                    <CheckBox
                                        Name="ChkAutoSave"
                                        Content="APP自动保存文件,频次为每"
                                        Foreground="{StaticResource color.sys.text.neutral.lv1}"
                                        IsChecked="{Binding Descript.AutoSave, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    <cus:NumericUpDown
                                        Width="120"
                                        Margin="8,0,0,0"
                                        HorizontalAlignment="Left"
                                        BorderThickness="0"
                                        FontSize="14"
                                        Foreground="{StaticResource color.field.text.act}"
                                        IsEnabled="{Binding ElementName=ChkAutoSave, Path=IsChecked}"
                                        Maximum="99"
                                        Minimum="5"
                                        Value="{Binding Descript.AutoSaveInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                                    <Label
                                        Margin="8,0,0,0"
                                        Content="min"
                                        Style="{StaticResource Label}" />
                                    <TextBlock
                                        Margin="8,0"
                                        VerticalAlignment="Center"
                                        Foreground="{StaticResource color.sys.text.neutral.lv3}"
                                        Text="5 to 99" />
                                </StackPanel>
                                <Grid Margin="8">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="auto" />
                                        <ColumnDefinition />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition />
                                        <RowDefinition />
                                    </Grid.RowDefinitions>
                                    <Label
                                        Grid.Row="0"
                                        Grid.Column="0"
                                        Content="关闭文档:"
                                        Style="{StaticResource Label2}" />
                                    <RadioButton
                                        Grid.Row="0"
                                        Grid.Column="1"
                                        Content="弹出“保存/不保存”提示"
                                        IsChecked="{Binding Descript.ShowSaveWhenClose, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                        Style="{DynamicResource RadioButtonStyle1}" />
                                    <RadioButton
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Margin="0,8"
                                        Content="无提示,直接保存"
                                        IsChecked="{Binding Descript.NotShowSaveWhenClose, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                        Style="{DynamicResource RadioButtonStyle1}" />
                                </Grid>
                            </StackPanel>
                        </Border>

                        <Label Content="打开图片文档" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,10,0,18"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <StackPanel>
                                <RadioButton
                                    Margin="9,12,0,0"
                                    Content="自动扫描并识别文本"
                                    IsChecked="{Binding Descript.AutoScanImageFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                                <RadioButton
                                    Grid.Row="1"
                                    Margin="9,10"
                                    Content="提示扫描并识别文本"
                                    IsChecked="{Binding Descript.TipScanImageFile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                            </StackPanel>
                        </Border>

                        <WrapPanel>
                            <Label
                                Margin="1,0"
                                Content="作者:"
                                Style="{StaticResource Label2}" />
                            <cus:TextBoxEx
                                Width="224"
                                VerticalAlignment="Center"
                                Foreground="{StaticResource color.field.text.act}"
                                Text="{Binding Descript.Author, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                        </WrapPanel>
                        <CheckBox
                            Name="CheckBoxDefaultPDF"
                            Margin="8,16"
                            Content="设置为默认PDF阅读器(需要管理员权限)"
                            Foreground="{StaticResource color.sys.text.neutral.lv1}"
                            IsChecked="{Binding IsDefualtApp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                            IsEnabled="{Binding IsSetDefualtAppEnable}" />
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem x:Name="TabItemDisplay" Style="{StaticResource InfoTabItem}">
                <TabItem.Header>
                    <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
                        <Path
                            Margin="0,0,8,0"
                            Data="{StaticResource Ic_DisplayButtonPath}"
                            Fill="{Binding ElementName=TabItemDisplay, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
                        <TextBlock
                            VerticalAlignment="Center"
                            Foreground="{Binding ElementName=TabItemDisplay, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
                            Text="Display" />
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">
                    <StackPanel Margin="16,10,10,0" Background="{StaticResource color.sys.layout.anti}">
                        <Label Content="默认视图和缩放" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,5,0,10"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <WrapPanel Margin="0,12,0,0">
                                    <Label
                                        Margin="8,0"
                                        Content="页面显示:"
                                        Style="{StaticResource Label2}" />
                                    <ComboBox
                                        Width="348"
                                        Height="30"
                                        ItemsSource="{Binding PageViewList}"
                                        SelectedIndex="{Binding PageViewSelctedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                                        <ComboBoxItem Content="单页" Foreground="{StaticResource color.field.text.act}" />
                                        <ComboBoxItem Content="单页连续" Foreground="{StaticResource color.field.text.act}" />
                                        <ComboBoxItem Content="双页" Foreground="{StaticResource color.field.text.act}" />
                                        <ComboBoxItem Content="双页连续" Foreground="{StaticResource color.field.text.act}" />
                                        <ComboBoxItem Content="书本" Foreground="{StaticResource color.field.text.act}" />
                                        <ComboBoxItem Content="书本连续" Foreground="{StaticResource color.field.text.act}" />
                                    </ComboBox>
                                </WrapPanel>
                                <WrapPanel Grid.Row="1" Margin="0,12">
                                    <Label
                                        Margin="8,0"
                                        Content="缩放比例:"
                                        Style="{StaticResource Label2}" />
                                    <ComboBox
                                        Width="348"
                                        Height="30"
                                        ItemsSource="{Binding ZoomModeList}"
                                        SelectedIndex="{Binding ZoomModeSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  
                                    </ComboBox>
                                </WrapPanel>
                            </Grid>
                        </Border>

                        <Label Content="左侧面板" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,8"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <StackPanel>
                                <Label
                                    Margin="8,8,0,0"
                                    Content="默认显示:"
                                    Style="{StaticResource Label2}" />
                                <RadioButton
                                    Margin="12"
                                    Content="打开文件时收起"
                                    IsChecked="{Binding View.NotShowBOTA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                                <RadioButton
                                    Margin="12,0,0,8"
                                    Content="打开APP记住上次选择"
                                    IsChecked="{Binding View.RememberBOTA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                                <CheckBox
                                    Margin="12,0,0,10"
                                    Content="有大纲时默认显示大纲列表"
                                    Foreground="{StaticResource color.sys.text.neutral.lv1}"
                                    IsChecked="{Binding View.ShowOutLine}" />
                            </StackPanel>
                        </Border>

                        <Label Content="属性面板" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,8,0,18"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <WrapPanel>
                                <Label
                                    Margin="8,5"
                                    Content="显示方式:"
                                    Style="{StaticResource Label2}" />
                                <RadioButton
                                    Content="自动展开"
                                    IsChecked="{Binding View.AutoExpandProperty}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                                <RadioButton
                                    Margin="8,5"
                                    Content="手动展开"
                                    IsChecked="{Binding View.ClickOpenProperty}"
                                    Style="{DynamicResource RadioButtonStyle1}" />
                            </WrapPanel>
                        </Border>

                        <Label Content="背景色:" Style="{StaticResource Label}" />
                        <WrapPanel>
                            <Label Content="正常:" Style="{StaticResource Label2}" />
                            <compositecontrol:ColorContent SelectedColor="{Binding View.BackGround, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
                            <Label Content="全屏:" Style="{StaticResource Label}" />
                            <compositecontrol:ColorContent SelectedColor="{Binding View.BackGroundInFulWindow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
                        </WrapPanel>
                        <CheckBox
                            Margin="5,0,0,8"
                            Content="高亮表单"
                            Foreground="{StaticResource color.sys.text.neutral.lv1}"
                            IsChecked="{Binding View.HignlightForm, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                        <WrapPanel>
                            <Label Content="域高亮色:" Style="{StaticResource Label2}" />
                            <compositecontrol:ColorContent SelectedColor="{Binding View.FormHighLightColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
                        </WrapPanel>
                        <WrapPanel>
                            <Label Content="必填栏高亮色:" Style="{StaticResource Label2}" />
                            <compositecontrol:ColorContent SelectedColor="{Binding View.RequiredFieldsColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowColorList="Collapsed" />
                        </WrapPanel>
                        <CheckBox
                            Margin="5,0,0,8"
                            Content="高亮链接"
                            Foreground="{StaticResource color.sys.text.neutral.lv1}"
                            IsChecked="{Binding View.HighlightLink, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem x:Name="TabItemMarkup" Style="{StaticResource InfoTabItem}">
                <TabItem.Header>
                    <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
                        <Path
                            Margin="0,0,8,0"
                            Data="{StaticResource Ic_MarkupButtonPath}"
                            Fill="{Binding ElementName=TabItemMarkup, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
                        <TextBlock
                            VerticalAlignment="Center"
                            Foreground="{Binding ElementName=TabItemMarkup, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
                            Text="Markup" />
                    </StackPanel>
                </TabItem.Header>
                <ScrollViewer Margin="0,0,0,80" VerticalScrollBarVisibility="Auto">
                    <StackPanel Margin="16,10,10,0">
                        <Label Content="注释默认颜色" Style="{StaticResource Label}" />
                        <Border
                            Margin="0,8"
                            Background="{StaticResource color.sys.layout.mg}"
                            CornerRadius="6">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition Width="150" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>

                                <Label Content="highlights:" Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.HighLightColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />

                                <Label
                                    Grid.Column="2"
                                    Content="Rectangular borders:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Column="3"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.RectangleBorderColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="1"
                                    Content="Strikthrough:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.StrikethroughColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="1"
                                    Grid.Column="2"
                                    Content="Round borders:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="1"
                                    Grid.Column="3"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.CircleBorderColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="2"
                                    Content="Underline:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="2"
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.UnderLineColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="2"
                                    Grid.Column="2"
                                    Content="Line segment:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="2"
                                    Grid.Column="3"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.LineColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="3"
                                    Content="Draw:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="3"
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.FreeHandColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="3"
                                    Grid.Column="2"
                                    Content="Rectangular Fill:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="3"
                                    Grid.Column="3"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.RectangleFillColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="4"
                                    Content="Text Notes:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="4"
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.TextAnnoteColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="4"
                                    Grid.Column="2"
                                    Content="Round filling:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="4"
                                    Grid.Column="3"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.CircleFillColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                                <Label
                                    Grid.Row="5"
                                    Content="Notes:"
                                    Style="{StaticResource Label2}" />
                                <compositecontrol:ColorContent
                                    Grid.Row="5"
                                    Grid.Column="1"
                                    Margin="10"
                                    SelectedColor="{Binding Annote.NoteAnnoteColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    ShowColorList="Collapsed" />
                            </Grid>
                        </Border>

                        <Label Content="注释默认字体" Style="{StaticResource Label}" />
                        <WrapPanel Margin="0,10">
                            <WrapPanel>
                                <Label Content="文本:" Style="{StaticResource Label2}" />
                                <ComboBox
                                    Width="228"
                                    Height="30"
                                    SelectedIndex="{Binding AnnoteSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                                    <ComboBoxItem Content="系统字体" Foreground="{StaticResource color.field.text.act}" />
                                    <ComboBoxItem Content="PingFang" Foreground="{StaticResource color.field.text.act}" />
                                </ComboBox>
                                <RadioButton
                                    Name="RbtLeft"
                                    Width="32"
                                    Height="32"
                                    Margin="8,8,0,8"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    IsChecked="{Binding LeftSelected}"
                                    Style="{StaticResource GreyBgRadioBtnStyle}">
                                    <Grid Width="32" Height="32">
                                        <Canvas Margin="5,10,0,0">
                                            <Rectangle
                                                Canvas.Top="0.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="4.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="12.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="8.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtLeft, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                        </Canvas>
                                    </Grid>
                                </RadioButton>
                                <RadioButton
                                    Name="RbtCenter"
                                    Width="32"
                                    Height="32"
                                    Margin="8"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    IsChecked="{Binding CenterSelected}"
                                    Style="{StaticResource GreyBgRadioBtnStyle}">
                                    <Grid Width="32" Height="32">
                                        <Canvas Margin="5,10,0,0">
                                            <Rectangle
                                                Canvas.Top="0.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Left="3"
                                                Canvas.Top="4.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Left="3"
                                                Canvas.Top="12.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="8.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtCenter, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                        </Canvas>
                                    </Grid>
                                </RadioButton>
                                <RadioButton
                                    Name="RbtRight"
                                    Width="32"
                                    Height="32"
                                    Margin="0,8,8,8"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    IsChecked="{Binding RightSelected}"
                                    Style="{StaticResource GreyBgRadioBtnStyle}">
                                    <Grid Width="32" Height="32">
                                        <Canvas Margin="5,10,0,0">
                                            <Rectangle
                                                Canvas.Top="0.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Left="6"
                                                Canvas.Top="4.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Left="6"
                                                Canvas.Top="12.25"
                                                Width="8"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="8.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtRight, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                        </Canvas>
                                    </Grid>
                                </RadioButton>
                                <RadioButton
                                    Name="RbtnStrech"
                                    Width="32"
                                    Height="32"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    IsChecked="{Binding StrechSelected}"
                                    Style="{StaticResource GreyBgRadioBtnStyle}">
                                    <Grid Width="32" Height="32">
                                        <Canvas Margin="5,10,0,0">
                                            <Rectangle
                                                Canvas.Top="0.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="8.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="4.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                            <Rectangle
                                                Canvas.Top="12.25"
                                                Width="14"
                                                Height="1.5"
                                                Stroke="{Binding ElementName=RbtnStrech, Path=Foreground}"
                                                StrokeThickness="1.5" />
                                        </Canvas>
                                    </Grid>
                                </RadioButton>
                            </WrapPanel>
                            <WrapPanel>
                                <Label Content="便签:" Style="{StaticResource Label2}" />
                                <ComboBox
                                    Width="228"
                                    Height="30"
                                    SelectedIndex="{Binding NoteSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                                    <ComboBoxItem Content="系统字体" Foreground="{StaticResource color.field.text.act}" />
                                    <ComboBoxItem Content="PingFang" Foreground="{StaticResource color.field.text.act}" />
                                </ComboBox>
                            </WrapPanel>
                        </WrapPanel>
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem
                x:Name="TabItemInformation"
                Style="{StaticResource InfoTabItem}"
                Visibility="Collapsed">
                <TabItem.Header>
                    <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
                        <Path
                            Margin="0,0,8,0"
                            Data="{StaticResource Ic_InformationButtonPath}"
                            Fill="{Binding ElementName=TabItemInformation, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}" />
                        <TextBlock
                            VerticalAlignment="Center"
                            Foreground="{Binding ElementName=TabItemInformation, Path=IsSelected, Converter={StaticResource BoolToBrushConvert}}"
                            Text="Information" />
                    </StackPanel>
                </TabItem.Header>
                <StackPanel Background="#f1ef9f">
                    <Label Content="Content goes here2..." />
                    <Label Content="Content goes here2..." />
                    <Button
                        Width="150"
                        Height="35"
                        Content="Security" />
                </StackPanel>
            </TabItem>
        </TabControl>
        <WrapPanel
            Grid.Row="1"
            Width="494"
            HorizontalAlignment="Right"
            VerticalAlignment="Bottom"
            Background="{StaticResource color.sys.layout.anti}">
            <Button
                Width="120"
                Height="32"
                Margin="16,24"
                Command="{Binding ResetCommand}"
                Content="重置"
                FontSize="14"
                Style="{StaticResource btn.sec}" />
            <Button
                Width="120"
                Height="32"
                Command="{Binding ResetAllCommand}"
                Content="重置全部"
                FontSize="14"
                Style="{StaticResource btn.sec}" />
        </WrapPanel>
        <Grid VerticalAlignment="Top" Background="{StaticResource color.sys.layout.bg.tabbar}">
            <TextBlock
                Width="550"
                Margin="16,6"
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                FontFamily="Segoe UI"
                FontSize="16"
                FontWeight="Bold"
                Foreground="{StaticResource color.sys.text.neutral.lv1}"
                Text="Preferences" />
            <StackPanel
                Name="StkPnlRight"
                HorizontalAlignment="Right"
                Orientation="Horizontal"
                WindowChrome.IsHitTestVisibleInChrome="True">
                <Button
                    Name="BtnClose"
                    Width="40"
                    Height="40"
                    Background="Transparent"
                    BorderThickness="0"
                    Click="BtnClose_Click"
                    Style="{StaticResource CloseBtn}">
                    <Polygon Fill="{StaticResource color.btn.sec.text.def}" Points="11.2919922 12 12 11.2919922 6.70800781 6 12 0.708007813 11.2919922 0 6 5.29199219 0.708007812 9.76996262e-15 -2.27456942e-13 0.708007813 5.29199219 6 0 11.2919922 0.708007812 12 6 6.70800781" />
                </Button>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>