| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| mc:Ignorable="d"> |
| mc:Ignorable="d"> |
| |
| |
| <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}"> |
| <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}"> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type ToggleButton}"> |
| <ControlTemplate TargetType="{x:Type ToggleButton}"> |
| <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" |
| <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" |
| BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> |
| BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> |
| <Grid> |
| <Grid> |
| <Grid.ColumnDefinitions> |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="Auto" /> |
| <ColumnDefinition Width="Auto" /> |
| <ColumnDefinition Width="*" /> |
| <ColumnDefinition Width="*" /> |
| </Grid.ColumnDefinitions> |
| </Grid.ColumnDefinitions> |
. | <TextBlock Text="+" x:Name="UpArrow" |
| <TextBlock Text="" x:Name="CollapsedIcon" FontFamily="{StaticResource FontIcoFont}" |
| VerticalAlignment="Center" HorizontalAlignment="Center" |
| VerticalAlignment="Center" HorizontalAlignment="Center" |
| Style="{DynamicResource BaseTextBlockStyle}" |
| Style="{DynamicResource BaseTextBlockStyle}" |
. | Foreground="{DynamicResource GlyphBrush}" FontSize="18" MinWidth="20" FontWeight="Bold" Margin="5,0,5,0" |
| Foreground="{DynamicResource GlyphBrush}" FontSize="18" MinWidth="20" Margin="5,0,5,0" |
| Grid.Column="0" TextAlignment="Center" /> |
| Grid.Column="0" TextAlignment="Center" /> |
. | <TextBlock Text="-" x:Name="DownArrow" |
| <TextBlock Text="" x:Name="ExpandedIcon" FontFamily="{StaticResource FontIcoFont}" |
| VerticalAlignment="Center" HorizontalAlignment="Center" |
| VerticalAlignment="Center" HorizontalAlignment="Center" |
| Style="{DynamicResource BaseTextBlockStyle}" |
| Style="{DynamicResource BaseTextBlockStyle}" |
. | Foreground="{DynamicResource GlyphBrush}" FontSize="18" MinWidth="20" FontWeight="Bold" Margin="5,0,5,0" |
| Foreground="{DynamicResource GlyphBrush}" FontSize="18" MinWidth="20" Margin="5,0,5,0" |
| Visibility="Collapsed" |
| Visibility="Collapsed" |
| Grid.Column="0" TextAlignment="Center"/> |
| Grid.Column="0" TextAlignment="Center"/> |
| <ContentPresenter Grid.Column="1" VerticalAlignment="Center" |
| <ContentPresenter Grid.Column="1" VerticalAlignment="Center" |
| SnapsToDevicePixels="True" HorizontalAlignment="Stretch" RecognizesAccessKey="True" /> |
| SnapsToDevicePixels="True" HorizontalAlignment="Stretch" RecognizesAccessKey="True" /> |
| </Grid> |
| </Grid> |
| </Border> |
| </Border> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsChecked" Value="True"> |
| <Trigger Property="IsChecked" Value="True"> |
. | <Setter Property="Visibility" TargetName="DownArrow" Value="Visible" /> |
| <Setter Property="Visibility" TargetName="ExpandedIcon" Value="Visible" /> |
| <Setter Property="Visibility" TargetName="UpArrow" Value="Collapsed" /> |
| <Setter Property="Visibility" TargetName="CollapsedIcon" Value="Collapsed" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Opacity" Value="0.75" /> |
| <Setter Property="Opacity" Value="0.75" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| |
| |
| <Style TargetType="{x:Type Expander}"> |
| <Style TargetType="{x:Type Expander}"> |
| <Setter Property="Background" Value="{DynamicResource ExpanderBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ExpanderBackgroundBrush}" /> |
| <Setter Property="BorderThickness" Value="0" /> |
| <Setter Property="BorderThickness" Value="0" /> |
| <Setter Property="BorderBrush" Value="Transparent" /> |
| <Setter Property="BorderBrush" Value="Transparent" /> |
| <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
| <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type Expander}"> |
| <ControlTemplate TargetType="{x:Type Expander}"> |
| <DockPanel> |
| <DockPanel> |
| <ToggleButton BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" |
| <ToggleButton BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" |
| Style="{DynamicResource ExpanderDownHeaderStyle}" |
| Style="{DynamicResource ExpanderDownHeaderStyle}" |
| Padding="{TemplateBinding Padding}" |
| Padding="{TemplateBinding Padding}" |
| MinHeight="25" DockPanel.Dock="Top" |
| MinHeight="25" DockPanel.Dock="Top" |
| Background="{TemplateBinding Background}" |
| Background="{TemplateBinding Background}" |
| Content="{TemplateBinding Header}" |
| Content="{TemplateBinding Header}" |
| IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| <Border x:Name="Border" DockPanel.Dock="Top" Visibility="Collapsed" |
| <Border x:Name="Border" DockPanel.Dock="Top" Visibility="Collapsed" |
| BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
| BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
| <ContentPresenter Focusable="False" |
| <ContentPresenter Focusable="False" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> |
| </Border> |
| </Border> |
| </DockPanel> |
| </DockPanel> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
| <Trigger Property="IsExpanded" Value="true"> |
| <Trigger Property="IsExpanded" Value="true"> |
| <Setter Property="Visibility" TargetName="Border" Value="Visible" /> |
| <Setter Property="Visibility" TargetName="Border" Value="Visible" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |