<ResourceDictionary 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"
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    mc:Ignorable="d">

    <Style TargetType="{x:Type PathSelectionBox}" BasedOn="{StaticResource {x:Type TextBox}}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <DockPanel>
                        <Button x:Name="PART_ButtonDirectorySelect" DockPanel.Dock="Right" Margin="5,0,0,0"
                                Content="&#xec5b;" FontFamily="{StaticResource FontIcoFont}" 
                                MaxHeight="{TemplateBinding ActualHeight}"
                                ToolTip="{DynamicResource LOCSelectDirectoryTooltip}" />
                        <Button x:Name="PART_ButtonFileSelect" DockPanel.Dock="Right" Margin="5,0,0,0"
                                Content="&#xef27;" FontFamily="{StaticResource FontIcoFont}"
                                MaxHeight="{TemplateBinding ActualHeight}"
                                ToolTip="{DynamicResource LOCSelectFileTitle}"/>
                        <Border x:Name="Border" BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}" CornerRadius="{DynamicResource ControlCornerRadius}"
                                Style="{DynamicResource HighlightBorder}" BorderBrush="{TemplateBinding BorderBrush}"
                                DockPanel.Dock="Left">
                            <ScrollViewer x:Name="PART_ContentHost"
                                          VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}"
                                          HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"/>
                        </Border>
                    </DockPanel>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="BorderBrush" Value="{DynamicResource GlyphBrush}" TargetName="Border" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>