Advertisement
TealDeer

slimCat Dark Themes - Theme.xaml (caracal r3)

Nov 14th, 2012
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 50.86 KB | None | 0 0
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2.                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3.     <!-- Resource Dictionary to hold all of the themes used in the application -->
  4.  
  5.     <BooleanToVisibilityConverter x:Key="BoolConverter" />
  6.     <ControlTemplate x:Key="EntryBox">
  7.         <Border x:Name="Border" BorderThickness="2" Padding="2"
  8.                                 Background="{StaticResource LightBackgroundBrush}">
  9.             <ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
  10.         </Border>
  11.         <ControlTemplate.Triggers>
  12.             <Trigger Property="IsFocused" Value="False">
  13.                 <Setter Property="Effect">
  14.                     <Setter.Value>
  15.                         <BlurEffect Radius="1.25" />
  16.                     </Setter.Value>
  17.                 </Setter>
  18.                 <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource DepressedBrush}" />
  19.             </Trigger>
  20.             <Trigger Property="IsFocused" Value="True">
  21.                 <Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource HighlightBrush}" />
  22.             </Trigger>
  23.             <Trigger Property="IsEnabled" Value="False">
  24.                 <Setter Property="Focusable" Value="False" />
  25.                 <Setter Property="Background" TargetName="Border" Value="{StaticResource BackgroundBrush}" />
  26.                 <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  27.             </Trigger>
  28.             <Trigger Property="IsEnabled" Value="True">
  29.                 <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
  30.             </Trigger>
  31.         </ControlTemplate.Triggers>
  32.     </ControlTemplate>
  33.  
  34.     <Style TargetType="TextBox">
  35.         <Setter Property="FontSize" Value="18" />
  36.         <Setter Property="Template" Value="{StaticResource EntryBox}" />
  37.     </Style>
  38.    
  39.     <Style TargetType="Hyperlink">
  40.         <Setter Property="Command" Value="{Binding NavigateTo}" />
  41.         <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  42.        
  43.         <Style.Triggers>
  44.             <Trigger Property="IsMouseOver" Value="True">
  45.                 <Setter Property="Foreground" Value="{StaticResource HighlightBrush}"/>
  46.             </Trigger>
  47.         </Style.Triggers>
  48.     </Style>
  49.    
  50.     <Style TargetType="Hyperlink" x:Key="TunnelingHyperlink">
  51.         <Setter Property="Command" Value="{Binding Path=DataContext.NavigateTo,
  52.                                  RelativeSource={RelativeSource Mode=FindAncestor,
  53.                                  AncestorType={x:Type ItemsControl}} }" />
  54.        
  55.         <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  56.  
  57.         <Style.Triggers>
  58.             <Trigger Property="IsMouseOver" Value="True">
  59.                 <Setter Property="Foreground" Value="{StaticResource HighlightBrush}"/>
  60.             </Trigger>
  61.         </Style.Triggers>
  62.     </Style>
  63.  
  64.     <Style TargetType="{x:Type CheckBox}">
  65.         <Setter Property="SnapsToDevicePixels" Value="true" />
  66.         <Setter Property="OverridesDefaultStyle" Value="true" />
  67.         <Setter Property="FocusVisualStyle" Value="{DynamicResource CheckBoxFocusVisual}" />
  68.         <Setter Property="Margin" Value="5" />
  69.         <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/>
  70.         <Setter Property="BorderBrush" Value="{StaticResource BrightBackgroundBrush}" />
  71.         <Setter Property="Background" Value="Transparent"/>
  72.         <Setter Property="Template">
  73.             <Setter.Value>
  74.                 <ControlTemplate TargetType="{x:Type CheckBox}">
  75.                     <BulletDecorator Background="Transparent">
  76.                         <BulletDecorator.Bullet>
  77.                             <Border x:Name="Border"
  78.                                    Width="13"
  79.                                    Height="13"
  80.                                    CornerRadius="0"
  81.                                    BorderThickness="1"
  82.                                    VerticalAlignment="Center"
  83.                                    BorderBrush="{TemplateBinding BorderBrush}">
  84.                                
  85.                                 <Grid>
  86.                                     <Path Visibility="Collapsed"
  87.                                          Width="7"
  88.                                          Height="7"
  89.                                          x:Name="CheckMark"
  90.                                          SnapsToDevicePixels="False"
  91.                                          StrokeThickness="2"
  92.                                          Data="M 0 0 L 7 7 M 0 7 L 7 0">
  93.                                         <Path.Stroke>
  94.                                             <SolidColorBrush Color="{StaticResource ForegroundColor}" />
  95.                                         </Path.Stroke>
  96.                                     </Path>
  97.                                     <Path Visibility="Collapsed"
  98.                                          Width="7"
  99.                                          Height="7"
  100.                                          x:Name="InderminateMark"
  101.                                          SnapsToDevicePixels="False"
  102.                                          StrokeThickness="2"
  103.                                          Data="M 0 7 L 7 0">
  104.                                         <Path.Stroke>
  105.                                             <SolidColorBrush Color="{StaticResource ForegroundColor}" />
  106.                                         </Path.Stroke>
  107.                                     </Path>
  108.                                 </Grid>
  109.                             </Border>
  110.                         </BulletDecorator.Bullet>
  111.                         <VisualStateManager.VisualStateGroups>
  112.                             <VisualStateGroup x:Name="CommonStates">
  113.                                 <VisualState x:Name="Normal" />
  114.                                 <VisualState x:Name="MouseOver">
  115.                                     <Storyboard>
  116.                                         <ColorAnimationUsingKeyFrames Storyboard.TargetName="Border"
  117.                                                Storyboard.TargetProperty="BorderBrush.Color">
  118.                                             <EasingColorKeyFrame KeyTime="0"
  119.                                                                 Value="{StaticResource HighlightColor}" />
  120.                                         </ColorAnimationUsingKeyFrames>
  121.                                     </Storyboard>
  122.                                 </VisualState>
  123.                                 <VisualState x:Name="Pressed">
  124.                                     <Storyboard>
  125.                                         <ColorAnimationUsingKeyFrames Storyboard.TargetName="Border"
  126.                                                Storyboard.TargetProperty="BorderBrush.Color">
  127.                                             <EasingColorKeyFrame KeyTime="0"
  128.                                                Value="{StaticResource DepressedColor}" />
  129.                                         </ColorAnimationUsingKeyFrames>
  130.                                     </Storyboard>
  131.                                 </VisualState>
  132.                                 <VisualState x:Name="Disabled" />
  133.                             </VisualStateGroup>
  134.                             <VisualStateGroup x:Name="CheckStates">
  135.                                 <VisualState x:Name="Checked">
  136.                                     <Storyboard>
  137.                                         <ObjectAnimationUsingKeyFrames
  138.                                                Storyboard.TargetProperty="(UIElement.Visibility)"
  139.                                                 Storyboard.TargetName="CheckMark">
  140.                                             <DiscreteObjectKeyFrame KeyTime="0"
  141.                                            Value="{x:Static Visibility.Visible}" />
  142.                                         </ObjectAnimationUsingKeyFrames>
  143.                                     </Storyboard>
  144.                                 </VisualState>
  145.                                 <VisualState x:Name="Unchecked" />
  146.                                 <VisualState x:Name="Indeterminate">
  147.                                     <Storyboard>
  148.                                         <ObjectAnimationUsingKeyFrames
  149.                                                Storyboard.TargetProperty="(UIElement.Visibility)"
  150.                                                 Storyboard.TargetName="InderminateMark">
  151.                                             <DiscreteObjectKeyFrame KeyTime="0"
  152.                                                                     Value="{x:Static Visibility.Visible}" />
  153.                                         </ObjectAnimationUsingKeyFrames>
  154.                                     </Storyboard>
  155.                                 </VisualState>
  156.                             </VisualStateGroup>
  157.                         </VisualStateManager.VisualStateGroups>
  158.                         <ContentPresenter Margin="4,0,0,0"
  159.                                          VerticalAlignment="Center"
  160.                                          HorizontalAlignment="Left"
  161.                                          RecognizesAccessKey="True" />
  162.                     </BulletDecorator>
  163.                 </ControlTemplate>
  164.             </Setter.Value>
  165.         </Setter>
  166.     </Style>
  167.  
  168.     <Style TargetType="PasswordBox">
  169.         <Setter Property="FontSize" Value="18" />
  170.         <Setter Property="Template" Value="{StaticResource EntryBox}" />
  171.     </Style>
  172.    
  173.     <Style TargetType="{x:Type Button}">
  174.         <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  175.         <Setter Property="BorderThickness" Value="2" />
  176.         <Setter Property="Padding" Value="5" />
  177.         <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  178.         <Setter Property="BorderBrush" Value="{StaticResource DepressedBrush}" />
  179.         <Setter Property="Background" Value="Transparent" />
  180.         <Setter Property="Template">
  181.             <Setter.Value>
  182.                 <ControlTemplate TargetType="Button">
  183.                     <Border x:Name="Root"
  184.                            BorderThickness="{TemplateBinding Property=BorderThickness}"
  185.                            Padding="{TemplateBinding Property=Padding}"
  186.                            TextBlock.Foreground="{TemplateBinding Property=Foreground}"
  187.                            BorderBrush="{TemplateBinding Property=BorderBrush}"
  188.                            Background="{TemplateBinding Property=Background}"
  189.                            RenderTransformOrigin="0.5,0.5">
  190.                         <Border.RenderTransform>
  191.                             <ScaleTransform x:Name="Scale" ScaleX="1" ScaleY="1"/>
  192.                         </Border.RenderTransform>
  193.                        
  194.                         <ContentPresenter x:Name="PART_ContentHost"
  195.                                          OverridesDefaultStyle="True"
  196.                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  197.                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  198.                     </Border>
  199.                     <ControlTemplate.Triggers>
  200.                         <Trigger Property="IsPressed" Value="True">
  201.                             <Setter Property="Background" TargetName="Root"
  202.                                    Value="{StaticResource DepressedBrush}" />
  203.                            
  204.                             <Trigger.EnterActions>
  205.                                 <BeginStoryboard>
  206.                                     <Storyboard>
  207.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  208.                                                         Storyboard.TargetProperty="ScaleX"
  209.                                                         From="1"
  210.                                                         To="0.90" Duration="0:0:0.05">
  211.                                             <DoubleAnimation.EasingFunction>
  212.                                                 <CircleEase EasingMode="EaseOut" />
  213.                                             </DoubleAnimation.EasingFunction>
  214.                                         </DoubleAnimation>
  215.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  216.                                                         From="1"
  217.                                                         Storyboard.TargetProperty="ScaleY"
  218.                                                         To="0.90" Duration="0:0:0.05">
  219.                                             <DoubleAnimation.EasingFunction>
  220.                                                 <CircleEase EasingMode="EaseOut" />
  221.                                             </DoubleAnimation.EasingFunction>
  222.                                         </DoubleAnimation>
  223.                                     </Storyboard>
  224.                                 </BeginStoryboard>
  225.                             </Trigger.EnterActions>
  226.                             <Trigger.ExitActions>
  227.                                 <BeginStoryboard>
  228.                                     <Storyboard>
  229.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  230.                                                         Storyboard.TargetProperty="ScaleX"
  231.                                                         From="0.90"
  232.                                                         To="1" Duration="0:0:0.05">
  233.                                             <DoubleAnimation.EasingFunction>
  234.                                                 <CircleEase EasingMode="EaseIn" />
  235.                                             </DoubleAnimation.EasingFunction>
  236.                                         </DoubleAnimation>
  237.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  238.                                                         From="0.90"
  239.                                                         Storyboard.TargetProperty="ScaleY"
  240.                                                         To="1" Duration="0:0:0.05">
  241.                                             <DoubleAnimation.EasingFunction>
  242.                                                 <CircleEase EasingMode="EaseIn" />
  243.                                             </DoubleAnimation.EasingFunction>
  244.                                         </DoubleAnimation>
  245.                                     </Storyboard>
  246.                                 </BeginStoryboard>
  247.                             </Trigger.ExitActions>
  248.                         </Trigger>
  249.                         <Trigger Property="IsEnabled" Value="True">
  250.                             <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
  251.                          </Trigger>
  252.                         <Trigger Property="IsFocused" Value="True">
  253.                             <Setter Property="BorderBrush" TargetName="Root"
  254.                                    Value="{StaticResource HighlightBrush}" />
  255.                         </Trigger>
  256.                         <Trigger Property="IsMouseOver" Value="True">
  257.                             <Setter Property="BorderBrush" TargetName="Root"
  258.                                    Value="{StaticResource HighlightBrush}" />
  259.                         </Trigger>
  260.                     </ControlTemplate.Triggers>
  261.                 </ControlTemplate>
  262.             </Setter.Value>
  263.         </Setter>
  264.     </Style>
  265.    
  266.     <Style TargetType="{x:Type Button}" x:Key="ChannelMarkupButton" BasedOn="{StaticResource {x:Type Button}}">
  267.         <Setter Property="Padding" Value="0" />
  268.         <Setter Property="Command" Value="{Binding Path=JoinChannelCommand}"/>
  269.     </Style>
  270.  
  271.     <Style TargetType="{x:Type Button}" x:Key="TunnelingChannelMarkupButton" BasedOn="{StaticResource ChannelMarkupButton}">
  272.         <Setter Property="Command" Value="{Binding Path=DataContext.JoinChannelCommand,
  273.                                  RelativeSource={RelativeSource Mode=FindAncestor,
  274.                                  AncestorType={x:Type ItemsControl}} }" />
  275.     </Style>
  276.  
  277.     <Style TargetType="{x:Type Button}" x:Key="ChannelInterfaceButton" BasedOn="{StaticResource {x:Type Button}}">
  278.         <Setter Property="Padding" Value="2,0"/>
  279.         <Setter Property="Command" Value="{Binding Path=DataContext.JoinChannelCommand,
  280.                    RelativeSource={RelativeSource Mode=FindAncestor,
  281.                    AncestorType={x:Type ItemsControl}} }"/>
  282.     </Style>
  283.    
  284.     <Style TargetType="ToggleButton">
  285.         <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  286.         <Setter Property="BorderThickness" Value="2" />
  287.         <Setter Property="Padding" Value="5" />
  288.         <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  289.         <Setter Property="Background" Value="Transparent" />
  290.         <Setter Property="Template">
  291.             <Setter.Value>
  292.                 <ControlTemplate TargetType="ToggleButton">
  293.                     <Border x:Name="Root"
  294.                            BorderThickness="{TemplateBinding Property=BorderThickness}"
  295.                            Padding="{TemplateBinding Property=Padding}"
  296.                            TextBlock.Foreground="{TemplateBinding Property=Foreground}"
  297.                            BorderBrush="{StaticResource DepressedBrush}"
  298.                            Background="{TemplateBinding Property=Background}"
  299.                            RenderTransformOrigin="0.5,0.5">
  300.                        
  301.                         <Border.RenderTransform>
  302.                             <ScaleTransform x:Name="Scale" ScaleX="1" ScaleY="1"/>
  303.                         </Border.RenderTransform>
  304.  
  305.                         <ContentPresenter x:Name="PART_ContentHost"
  306.                                          OverridesDefaultStyle="True"
  307.                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  308.                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  309.                     </Border>
  310.                     <ControlTemplate.Triggers>
  311.                         <Trigger Property="IsChecked" Value="True">
  312.                             <Setter Property="Background" Value="{StaticResource BrightBackgroundBrush}" />
  313.                             <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" />
  314.                         </Trigger>
  315.                        
  316.                         <Trigger Property="IsChecked" Value="False">
  317.                             <Setter Property="Foreground" Value="{StaticResource DepressedBrush}" />
  318.                             <Setter Property="BorderBrush" Value="{StaticResource DepressedBrush}" />
  319.                         </Trigger>
  320.                        
  321.                         <Trigger Property="IsPressed" Value="True">
  322.                             <Setter Property="Background" TargetName="Root"
  323.                                    Value="{StaticResource DepressedBrush}" />
  324.  
  325.                             <Trigger.EnterActions>
  326.                                 <BeginStoryboard>
  327.                                     <Storyboard>
  328.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  329.                                                         Storyboard.TargetProperty="ScaleX"
  330.                                                         From="1"
  331.                                                         To="0.90" Duration="0:0:0.05">
  332.                                             <DoubleAnimation.EasingFunction>
  333.                                                 <CircleEase EasingMode="EaseOut" />
  334.                                             </DoubleAnimation.EasingFunction>
  335.                                         </DoubleAnimation>
  336.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  337.                                                         From="1"
  338.                                                         Storyboard.TargetProperty="ScaleY"
  339.                                                         To="0.90" Duration="0:0:0.05">
  340.                                             <DoubleAnimation.EasingFunction>
  341.                                                 <CircleEase EasingMode="EaseOut" />
  342.                                             </DoubleAnimation.EasingFunction>
  343.                                         </DoubleAnimation>
  344.                                     </Storyboard>
  345.                                 </BeginStoryboard>
  346.                             </Trigger.EnterActions>
  347.                             <Trigger.ExitActions>
  348.                                 <BeginStoryboard>
  349.                                     <Storyboard>
  350.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  351.                                                         Storyboard.TargetProperty="ScaleX"
  352.                                                         From="0.90"
  353.                                                         To="1" Duration="0:0:0.05">
  354.                                             <DoubleAnimation.EasingFunction>
  355.                                                 <CircleEase EasingMode="EaseIn" />
  356.                                             </DoubleAnimation.EasingFunction>
  357.                                         </DoubleAnimation>
  358.                                         <DoubleAnimation Storyboard.TargetName="Scale"
  359.                                                         From="0.90"
  360.                                                         Storyboard.TargetProperty="ScaleY"
  361.                                                         To="1" Duration="0:0:0.05">
  362.                                             <DoubleAnimation.EasingFunction>
  363.                                                 <CircleEase EasingMode="EaseIn" />
  364.                                             </DoubleAnimation.EasingFunction>
  365.                                         </DoubleAnimation>
  366.                                     </Storyboard>
  367.                                 </BeginStoryboard>
  368.                             </Trigger.ExitActions>
  369.                         </Trigger>
  370.                         <Trigger Property="IsFocused" Value="True">
  371.                             <Setter Property="BorderBrush" TargetName="Root"
  372.                                    Value="{StaticResource HighlightBrush}" />
  373.                         </Trigger>
  374.                         <Trigger Property="IsMouseOver" Value="True">
  375.                             <Setter Property="BorderBrush" TargetName="Root"
  376.                                    Value="{StaticResource HighlightBrush}" />
  377.                         </Trigger>
  378.                     </ControlTemplate.Triggers>
  379.                 </ControlTemplate>
  380.             </Setter.Value>
  381.         </Setter>
  382.     </Style>
  383.    
  384.     <ControlTemplate x:Key="SimpleExpanderButton"
  385.                     TargetType="{x:Type ToggleButton}">
  386.         <Border x:Name="ExpanderButtonBorder"
  387.                Margin="{TemplateBinding Property=Margin}"
  388.                Background="{TemplateBinding Property=Background}"
  389.                BorderBrush="{TemplateBinding Property=BorderBrush}"
  390.                BorderThickness="2">
  391.             <Grid HorizontalAlignment="Left"
  392.                  Margin="5">
  393.                 <Grid.ColumnDefinitions>
  394.                     <ColumnDefinition Width="auto" />
  395.                     <ColumnDefinition Width="*" />
  396.                 </Grid.ColumnDefinitions>
  397.                
  398.                 <Rectangle Fill="Transparent"
  399.                           Grid.ColumnSpan="2" />
  400.                 <Path x:Name="Sign"
  401.                      Grid.Column="0"
  402.                      Data="M 0, 5 H 10 M 5, 0 V 10 Z"
  403.                      Stroke="{StaticResource HighlightBrush}"
  404.                      Width="10"
  405.                      Height="10"
  406.                      Margin="0,0,4,0"
  407.                      StrokeThickness="2"
  408.                      HorizontalAlignment="Center"
  409.                      VerticalAlignment="Center"
  410.                      RenderTransformOrigin="0.5,0.5">
  411.                     <Path.RenderTransform>
  412.                         <RotateTransform Angle="0" />
  413.                     </Path.RenderTransform>
  414.                 </Path>
  415.                 <ContentPresenter x:Name="HeaderContent"
  416.                                  Grid.Column="1"
  417.                                  ContentSource="Content"
  418.                                  TextBlock.Foreground="{StaticResource ForegroundBrush}"/>
  419.             </Grid>
  420.         </Border>
  421.         <ControlTemplate.Triggers>
  422.             <Trigger Property="IsChecked" Value="true">
  423.                 <Setter Property="Data" TargetName="Sign"
  424.                        Value="M 0, 5 H 10 Z" />
  425.                 <Setter Property="Stroke" Value="{StaticResource HighlightBrush}"
  426.                        TargetName="Sign" />
  427.             </Trigger>
  428.             <Trigger Property="IsMouseOver" Value="true">
  429.                 <Setter Property="Stroke" Value="{StaticResource ForegroundBrush}"
  430.                        TargetName="Sign" />
  431.             </Trigger>
  432.             <Trigger Property="IsPressed" Value="true">
  433.                 <Setter Property="StrokeThickness" Value="0" TargetName="Sign" />
  434.             </Trigger>
  435.         </ControlTemplate.Triggers>            
  436.     </ControlTemplate>
  437.    
  438.     <ControlTemplate x:Key="ThemedExpander" TargetType="{x:Type Expander}">
  439.         <DockPanel>
  440.             <ToggleButton x:Name="ExpanderButton"
  441.                          DockPanel.Dock="Top"
  442.                          Background="{TemplateBinding Property=Background}"
  443.                          BorderBrush="{TemplateBinding Property=BorderBrush}"
  444.                          Template="{StaticResource SimpleExpanderButton}"
  445.                          Content="{TemplateBinding Header}"
  446.                          IsChecked="{Binding Path=IsExpanded,
  447.                          RelativeSource={RelativeSource TemplatedParent}}"
  448.                          OverridesDefaultStyle="True"
  449.                          Padding="1"
  450.                          Margin="{TemplateBinding Property=Margin}">
  451.             </ToggleButton>
  452.            
  453.             <ContentPresenter x:Name="ExpanderContent"
  454.                              DockPanel.Dock="Bottom"
  455.                              TextBlock.Foreground="{StaticResource ForegroundBrush}"
  456.                              Visibility="Collapsed"
  457.                              Margin="0,0,0,5">
  458.                 <ContentPresenter.LayoutTransform>
  459.                     <ScaleTransform />
  460.                 </ContentPresenter.LayoutTransform>
  461.             </ContentPresenter>
  462.         </DockPanel>
  463.         <ControlTemplate.Triggers>
  464.             <Trigger Property="IsExpanded" Value="True">
  465.                 <Setter Property="Visibility"
  466.                        TargetName="ExpanderContent"
  467.                        Value="Visible"/>
  468.                 <!--
  469.                <Trigger.EnterActions>
  470.                    <BeginStoryboard>
  471.                        <Storyboard>
  472.                            <DoubleAnimation Storyboard.TargetName="ExpanderContent"
  473.                                             Storyboard.TargetProperty=
  474.                                             "(ContentPresenter.LayoutTransform).(ScaleTransform.ScaleY)"
  475.                                             To="1"
  476.                                             Duration="0:0:0.3">
  477.                                <DoubleAnimation.EasingFunction>
  478.                                    <CircleEase EasingMode="EaseOut" />
  479.                                </DoubleAnimation.EasingFunction>
  480.                            </DoubleAnimation>
  481.                            
  482.                            <DoubleAnimation Storyboard.TargetName="ExpanderContent"
  483.                                             Storyboard.TargetProperty="Opacity"
  484.                                             To="1"
  485.                                             Duration="0:0:0.4">
  486.                                <DoubleAnimation.EasingFunction>
  487.                                    <CircleEase EasingMode="EaseOut" />
  488.                                </DoubleAnimation.EasingFunction>
  489.                            </DoubleAnimation>
  490.                        </Storyboard>
  491.                    </BeginStoryboard>
  492.                </Trigger.EnterActions>
  493.                <Trigger.ExitActions>
  494.                    <BeginStoryboard>
  495.                        <Storyboard>
  496.                            <DoubleAnimation Storyboard.TargetName="ExpanderContent"
  497.                                             Storyboard.TargetProperty=
  498.                                             "(ContentPresenter.LayoutTransform).(ScaleTransform.ScaleY)"
  499.                                             To="0"
  500.                                             Duration="0:0:0.3">
  501.                                <DoubleAnimation.EasingFunction>
  502.                                    <CircleEase EasingMode="EaseIn" />
  503.                                </DoubleAnimation.EasingFunction>
  504.                            </DoubleAnimation>
  505.                            
  506.                            <DoubleAnimation Storyboard.TargetName="ExpanderContent"
  507.                                             Storyboard.TargetProperty="Opacity"
  508.                                             To="0"
  509.                                             Duration="0:0:0.2">
  510.                                <DoubleAnimation.EasingFunction>
  511.                                    <CircleEase EasingMode="EaseIn" />
  512.                                </DoubleAnimation.EasingFunction>
  513.                            </DoubleAnimation>
  514.                        </Storyboard>
  515.                    </BeginStoryboard>
  516.                </Trigger.ExitActions>
  517.                -->
  518.             </Trigger>
  519.         </ControlTemplate.Triggers>
  520.     </ControlTemplate>
  521.    
  522.     <Style TargetType="Expander">
  523.         <Setter Property="Template" Value="{StaticResource ThemedExpander}" />
  524.         <Setter Property="IsExpanded" Value="False" />
  525.     </Style>
  526.    
  527.     <DataTemplate x:Key="AvatarListBox">
  528.         <Border Background="Transparent" x:Name="root" Margin="5"
  529.                BorderBrush="Transparent" BorderThickness="2">
  530.             <StackPanel Margin="10, 2">
  531.                 <Image Height="50" Width="50" Visibility="Collapsed" />
  532.                 <TextBlock Text="{Binding}" HorizontalAlignment="Center" />
  533.             </StackPanel>
  534.         </Border>
  535.         <DataTemplate.Triggers>
  536.             <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  537.                AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="True">
  538.                 <Setter Property="TextBlock.Foreground" Value="{StaticResource ForegroundBrush}" />
  539.                 <Setter TargetName="root" Property="BorderBrush" Value="{StaticResource HighlightBrush}" />
  540.                 <Setter TargetName="root" Property="Background" Value="{StaticResource LightBackgroundBrush}" />
  541.             </DataTrigger>
  542.             <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  543.                AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="False">
  544.                 <Setter Property="TextBlock.Foreground" Value="{StaticResource DepressedBrush}" />
  545.                 <Setter Property="Effect">
  546.                     <Setter.Value>
  547.                         <BlurEffect Radius="1.5" />
  548.                     </Setter.Value>
  549.                 </Setter>
  550.             </DataTrigger>
  551.             <MultiDataTrigger>
  552.                 <MultiDataTrigger.Conditions>
  553.                     <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  554.                    AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="False" />
  555.                     <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  556.                    AncestorType={x:Type ListBox}}, Path=IsEnabled}" Value="False" />    
  557.                 </MultiDataTrigger.Conditions>
  558.                 <Setter Property="TextBlock.Foreground" Value="Transparent" />
  559.             </MultiDataTrigger>
  560.             <MultiDataTrigger>
  561.                 <MultiDataTrigger.Conditions>
  562.                     <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  563.                    AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="True" />
  564.                     <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
  565.                    AncestorType={x:Type ListBox}}, Path=IsEnabled}" Value="False" />
  566.                 </MultiDataTrigger.Conditions>
  567.                 <Setter TargetName="root" Property="Background" Value="Transparent" />
  568.                 <Setter Property="TextBlock.Foreground" Value="{StaticResource ForegroundBrush}" />
  569.             </MultiDataTrigger>
  570.         </DataTemplate.Triggers>
  571.     </DataTemplate>
  572.  
  573.     <Style TargetType="ListBox">
  574.         <Style.Resources>
  575.             <!-- System color over-ride -->
  576.             <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
  577.                             Color="Transparent" />
  578.             <!-- System color over-ride -->
  579.             <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
  580.                             Color="Transparent" />
  581.             <!-- System color over-ride -->
  582.             <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}"
  583.                             Color="Transparent" />
  584.         </Style.Resources>
  585.         <Setter Property="ItemTemplate" Value="{StaticResource AvatarListBox}" />
  586.         <Setter Property="Background" Value="Transparent" />
  587.         <Setter Property="HorizontalContentAlignment" Value="Center" />
  588.         <Setter Property="BorderBrush" Value="Transparent" />
  589.         <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
  590.         <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
  591.         <Setter Property="ItemContainerStyle">
  592.             <Setter.Value>
  593.                 <Style TargetType="ListBoxItem">
  594.                     <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  595.                 </Style>
  596.             </Setter.Value>
  597.         </Setter>
  598.     </Style>
  599.  
  600.     <Style TargetType="ListBox" x:Key="ContentListBox">
  601.         <Style.Resources>
  602.             <!-- System color over-ride -->
  603.             <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
  604.                             Color="Transparent" />
  605.             <!-- System color over-ride -->
  606.             <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
  607.                             Color="Transparent" />
  608.             <!-- System color over-ride -->
  609.             <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}"
  610.                             Color="Transparent" />
  611.         </Style.Resources>
  612.        
  613.         <Setter Property="VirtualizingStackPanel.VirtualizationMode" Value="Recycling"/>
  614.         <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  615.         <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
  616.         <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="True"/>
  617.         <Setter Property="Margin" Value="0,5" />
  618.         <Setter Property="Background" Value="Transparent" />
  619.         <Setter Property="BorderBrush" Value="Transparent" />
  620.         <Setter Property="ItemContainerStyle">
  621.             <Setter.Value>
  622.                 <Style TargetType="ListBoxItem">
  623.                     <Setter Property="Padding" Value="0" />
  624.                     <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  625.                 </Style>
  626.             </Setter.Value>
  627.         </Setter>
  628.     </Style>
  629.  
  630.     <Style TargetType="ScrollViewer">
  631.         <Setter Property="CanContentScroll" Value="True" />
  632.         <Setter Property="VerticalScrollBarVisibility" Value="Auto" />
  633.     </Style>
  634.  
  635.    
  636.     <DataTemplate x:Key="ChannelUpdateTemplate">
  637.         <Grid>
  638.             <Grid.ColumnDefinitions>
  639.                 <ColumnDefinition />
  640.                 <ColumnDefinition Width="auto"/>
  641.             </Grid.ColumnDefinitions>
  642.             <TextBlock TextWrapping="Wrap"
  643.                       TextAlignment="Left">
  644.                 <InlineUIContainer BaselineAlignment="TextBottom">
  645.                     <Button Content="{Binding Path=ChannelTitle, Mode=OneWay}"
  646.                            Style="{StaticResource ChannelInterfaceButton}"
  647.                            CommandParameter="{Binding Path=ChannelID, Mode=OneWay}" />
  648.                 </InlineUIContainer>
  649.                 <Run Text="{Binding Path=Arguments, Mode=OneWay}"
  650.                     Foreground="{StaticResource ForegroundBrush}"/>
  651.             </TextBlock>
  652.            
  653.             <Button Content="X"
  654.                    Grid.Column="1"
  655.                    VerticalAlignment="Top"
  656.                    HorizontalAlignment="Right"
  657.                    Padding="2,0"
  658.                    Command="{Binding Path=DataContext.RemoveNotificationCommand,
  659.                    RelativeSource={RelativeSource Mode=FindAncestor,
  660.                    AncestorType={x:Type ItemsControl}} }"
  661.                    CommandParameter="{Binding}"/>
  662.         </Grid>
  663.     </DataTemplate>
  664.    
  665.     <Storyboard x:Key="FadeInAnimation" >
  666.         <DoubleAnimation Storyboard.TargetProperty="Opacity"
  667.                         Duration="0:0:0.3"
  668.                         From="0"
  669.                         To="1">
  670.  
  671.             <DoubleAnimation.EasingFunction>
  672.                 <CircleEase EasingMode="EaseIn" />
  673.             </DoubleAnimation.EasingFunction>
  674.         </DoubleAnimation>
  675.     </Storyboard>
  676.    
  677.     <Storyboard x:Key="FadeOutAnimation" >
  678.         <DoubleAnimation Storyboard.TargetProperty="Opacity"
  679.                         Duration="0:0:0.3"
  680.                         From="1"
  681.                         To="0">
  682.  
  683.             <DoubleAnimation.EasingFunction>
  684.                 <CircleEase EasingMode="EaseOut" />
  685.             </DoubleAnimation.EasingFunction>
  686.         </DoubleAnimation>
  687.     </Storyboard>
  688.  
  689.     <Style TargetType="ItemsControl">
  690.         <Setter Property="KeyboardNavigation.IsTabStop" Value="False" />
  691.         <Setter Property="Focusable" Value="True" />
  692.         <Setter Property="ItemsPanel">
  693.             <Setter.Value>
  694.                 <ItemsPanelTemplate>
  695.                     <VirtualizingStackPanel IsItemsHost="True"
  696.                                            VirtualizationMode="Recycling"/>
  697.                 </ItemsPanelTemplate>
  698.             </Setter.Value>
  699.         </Setter>
  700.         <Setter Property="Template">
  701.             <Setter.Value>
  702.                 <ControlTemplate>
  703.                     <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
  704.                            BorderBrush="{TemplateBinding Border.BorderBrush}"
  705.                            Background="{TemplateBinding Panel.Background}"
  706.                            SnapsToDevicePixels="True">
  707.                         <ScrollViewer Padding="{TemplateBinding Control.Padding}"
  708.                                      Focusable="False">
  709.                             <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
  710.                                            Margin="0,0,5,0"/>
  711.                         </ScrollViewer>
  712.                     </Border>
  713.                 </ControlTemplate>
  714.             </Setter.Value>
  715.         </Setter>
  716.     </Style>
  717.  
  718.     <!-- Scollbar styles -->
  719.     <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
  720.         <Setter Property="SnapsToDevicePixels" Value="True"/>
  721.         <Setter Property="OverridesDefaultStyle" Value="true"/>
  722.         <Setter Property="Focusable" Value="false"/>
  723.         <Setter Property="Template">
  724.             <Setter.Value>
  725.                 <ControlTemplate TargetType="{x:Type RepeatButton}">
  726.                     <Border Name="Border" Margin="1" Background="Transparent"
  727.                            BorderBrush="{StaticResource DepressedBrush}"
  728.                            CornerRadius="2" BorderThickness="1">
  729.                         <Path Name="Path" HorizontalAlignment="Center"
  730.                              VerticalAlignment="Center" Fill="{StaticResource ForegroundBrush}"
  731.                              Data="{Binding Path=Content,
  732.                              RelativeSource={RelativeSource TemplatedParent}}" />
  733.                     </Border>
  734.                     <ControlTemplate.Triggers>
  735.                         <Trigger Property="IsMouseOver" Value="true">
  736.                             <Setter TargetName="Path" Property="Fill"
  737.                                    Value="{StaticResource DepressedBrush}" />
  738.                             <Setter TargetName="Border" Property="BorderBrush"
  739.                                    Value="{StaticResource ForegroundBrush}" />
  740.                         </Trigger>
  741.                         <Trigger Property="IsPressed" Value="true">
  742.                             <Setter TargetName="Border" Property="Background"
  743.                                        Value="{StaticResource BrightBackgroundBrush}" />
  744.                         </Trigger>
  745.                     </ControlTemplate.Triggers>
  746.                 </ControlTemplate>
  747.             </Setter.Value>
  748.         </Setter>
  749.     </Style>
  750.     <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
  751.         <Setter Property="SnapsToDevicePixels" Value="True"/>
  752.         <Setter Property="OverridesDefaultStyle" Value="true"/>
  753.         <Setter Property="IsTabStop" Value="false"/>
  754.         <Setter Property="Focusable" Value="false"/>
  755.         <Setter Property="Template">
  756.             <Setter.Value>
  757.                 <ControlTemplate TargetType="{x:Type Thumb}">
  758.                     <Border Background="{TemplateBinding Background}"
  759.                            CornerRadius="2"
  760.                            BorderBrush="{TemplateBinding BorderBrush}"
  761.                            BorderThickness="2" Name="Border"/>
  762.                     <ControlTemplate.Triggers>
  763.                         <Trigger Property="IsMouseOver" Value="True">
  764.                             <Setter Property="BorderBrush" TargetName="Border"
  765.                                    Value="{StaticResource ForegroundBrush}" />
  766.                         </Trigger>
  767.                         <Trigger Property="IsDragging" Value="true">
  768.                             <Setter Property="Background" TargetName="Border"
  769.                                    Value="{StaticResource BrightBackgroundBrush}" />
  770.                         </Trigger>
  771.                     </ControlTemplate.Triggers>
  772.                 </ControlTemplate>
  773.             </Setter.Value>
  774.         </Setter>
  775.     </Style>
  776.     <ControlTemplate x:Key="VerticalScrollBar"
  777.            TargetType="{x:Type ScrollBar}">
  778.         <Grid >
  779.             <Grid.RowDefinitions>
  780.                 <RowDefinition MaxHeight="18"/>
  781.                 <RowDefinition Height="0.00001*"/>
  782.                 <RowDefinition MaxHeight="18"/>
  783.             </Grid.RowDefinitions>
  784.             <Border Grid.RowSpan="3" Background="Transparent" />
  785.             <RepeatButton Grid.Row="0" Style="{StaticResource ScrollBarLineButton}"
  786.                          Height="18" Command="ScrollBar.LineUpCommand"
  787.                          Content="M 0 4 L 8 4 L 4 0 Z" />
  788.             <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="True">
  789.                 <Track.Thumb>
  790.                     <Thumb Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1"
  791.                          Background="Transparent" BorderBrush="{StaticResource DepressedBrush}"/>
  792.                 </Track.Thumb>
  793.             </Track>
  794.             <RepeatButton Grid.Row="3" Style="{StaticResource ScrollBarLineButton}"
  795.                          Height="18" Command="ScrollBar.LineDownCommand"
  796.                          Content="M 0 0 L 4 4 L 8 0 Z"/>
  797.         </Grid>
  798.     </ControlTemplate>
  799.     <ControlTemplate x:Key="HorizontalScrollBar"
  800.            TargetType="{x:Type ScrollBar}">
  801.         <Grid >
  802.             <Grid.ColumnDefinitions>
  803.                 <ColumnDefinition MaxWidth="18"/>
  804.                 <ColumnDefinition Width="0.00001*"/>
  805.                 <ColumnDefinition MaxWidth="18"/>
  806.             </Grid.ColumnDefinitions>
  807.             <Border Grid.ColumnSpan="3" Background="Transparent" />
  808.              <RepeatButton Grid.Column="0" Style="{StaticResource ScrollBarLineButton}"
  809.                          Width="18" Command="ScrollBar.LineLeftCommand"
  810.                          Content="M 4 0 L 4 8 L 0 4 Z" />
  811.             <Track Name="PART_Track" Grid.Column="1" IsDirectionReversed="False">
  812.                 <Track.Thumb>
  813.                     <Thumb Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1"
  814.                          Background="Transparent" BorderBrush="{StaticResource DepressedBrush}"/>
  815.                 </Track.Thumb>
  816.             </Track>
  817.             <RepeatButton Grid.Column="3" Style="{StaticResource ScrollBarLineButton}"
  818.                          Width="18" Command="ScrollBar.LineRightCommand"
  819.                          Content="M 0 0 L 4 4 L 0 8 Z"/>
  820.         </Grid>
  821.     </ControlTemplate>
  822.     <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
  823.         <Setter Property="SnapsToDevicePixels" Value="True"/>
  824.         <Setter Property="OverridesDefaultStyle" Value="true"/>
  825.         <Style.Triggers>
  826.             <Trigger Property="Orientation" Value="Horizontal">
  827.                 <Setter Property="Width" Value="Auto"/>
  828.                 <Setter Property="Height" Value="18" />
  829.                 <Setter Property="Template"
  830.                        Value="{StaticResource HorizontalScrollBar}" />
  831.             </Trigger>
  832.             <Trigger Property="Orientation" Value="Vertical">
  833.                 <Setter Property="Width" Value="18"/>
  834.                 <Setter Property="Height" Value="Auto" />
  835.                 <Setter Property="Template"
  836.                        Value="{StaticResource VerticalScrollBar}" />
  837.             </Trigger>
  838.         </Style.Triggers>
  839.     </Style>
  840.    
  841.     <Style x:Key="{x:Type ContextMenu}" TargetType="{x:Type ContextMenu}">
  842.         <Setter Property="OverridesDefaultStyle" Value="True"/>
  843.         <Setter Property="SnapsToDevicePixels" Value="True"/>
  844.         <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/>
  845.         <Setter Property="Template">
  846.             <Setter.Value>
  847.                 <ControlTemplate TargetType="{x:Type ContextMenu}">
  848.                     <Border Background="{StaticResource BackgroundBrush}"
  849.                            BorderBrush="{StaticResource HighlightBrush}"
  850.                            BorderThickness="1">
  851.                         <StackPanel ClipToBounds="True" Orientation="Vertical" IsItemsHost="True"/>
  852.                     </Border>
  853.                 </ControlTemplate>
  854.             </Setter.Value>
  855.         </Setter>
  856.     </Style>
  857.    
  858.     <Style TargetType="MenuItem">
  859.         <Style.Triggers>
  860.             <Trigger Property="IsEnabled" Value="False">
  861.                 <Setter Property="Foreground" Value="{StaticResource DepressedBrush}"/>
  862.             </Trigger>
  863.             <Trigger Property="IsEnabled" Value="True">
  864.                 <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/>
  865.             </Trigger>
  866.             <Trigger Property="IsMouseOver" Value="True">
  867.                 <Setter Property="Background" Value="{StaticResource DepressedBrush}"/>
  868.             </Trigger>
  869.         </Style.Triggers>
  870.     </Style>
  871.    
  872.     <ControlTemplate x:Key="GenderCheckBoxes" TargetType="ContentControl">
  873.         <StackPanel Orientation="Vertical">
  874.             <TextBlock Foreground="{StaticResource ForegroundBrush}"
  875.                       Text="I want to see ..."
  876.                       Margin="2,0"/>
  877.             <CheckBox IsChecked="{Binding ShowMales}">Males</CheckBox>
  878.             <CheckBox IsChecked="{Binding ShowFemales}">Females</CheckBox>
  879.             <CheckBox IsChecked="{Binding ShowMaleHerms}">Male Herms</CheckBox>
  880.             <CheckBox IsChecked="{Binding ShowFemaleHerms}">Female Herms</CheckBox>
  881.             <CheckBox IsChecked="{Binding ShowCuntboys}">Cuntboys</CheckBox>
  882.             <CheckBox IsChecked="{Binding ShowTransgenders}">Transgenders</CheckBox>
  883.             <CheckBox IsChecked="{Binding ShowShemales}">Shemales</CheckBox>
  884.             <CheckBox IsChecked="{Binding ShowNoGenders}">Genderless</CheckBox>
  885.         </StackPanel>
  886.     </ControlTemplate>
  887.    
  888.     <ControlTemplate x:Key="GeneralFilterCheckBoxes" TargetType="ContentControl">
  889.         <StackPanel Orientation="Vertical">
  890.             <TextBlock Foreground="{StaticResource ForegroundBrush}"
  891.                       Text="Who are ..."
  892.                       Margin="2,0"/>
  893.             <CheckBox IsChecked="{Binding ShowFriends}">Friends</CheckBox>
  894.             <CheckBox IsChecked="{Binding ShowBookmarks}">Bookmarked</CheckBox>
  895.             <CheckBox IsChecked="{Binding ShowMods}">Moderators</CheckBox>
  896.             <CheckBox IsChecked="{Binding ShowLooking}">Looking For Play</CheckBox>
  897.             <CheckBox IsChecked="{Binding ShowNormal}">Just Online</CheckBox>
  898.             <CheckBox IsChecked="{Binding ShowBusyAway}">Busy or Away</CheckBox>
  899.             <CheckBox IsChecked="{Binding ShowDND}">DND</CheckBox>
  900.         </StackPanel>
  901.     </ControlTemplate>
  902.  
  903.     <ControlTemplate x:Key="ChannelSettingBoxes" TargetType="ContentControl">
  904.         <StackPanel TextBlock.Foreground="{StaticResource ForegroundBrush}">
  905.             <CheckBox IsChecked="{Binding ShouldFlash}">Channel flashes on a new message</CheckBox>
  906.             <WrapPanel Visibility="{Binding ShouldFlash, Converter={StaticResource BoolConverter}}"
  907.                       TextBlock.Foreground="{StaticResource ForegroundBrush}">
  908.                 <TextBlock Text="Flash every "
  909.                           Margin="5"/>
  910.                 <TextBox Text="{Binding FlashInterval}"
  911.                         VerticalAlignment="Center"
  912.                         FontSize="12"/>
  913.                 <TextBlock Text="New unread Messages"
  914.                           Margin="5"/>
  915.             </WrapPanel>
  916.             <CheckBox IsChecked="{Binding ShouldDing}">Play a sound and notify on new message</CheckBox>
  917.             <CheckBox IsChecked="{Binding NotifyCharacterMention}">Notify me when this this character is mentioned</CheckBox>
  918.             <TextBlock Margin="0,10">Notify me when these terms are mentioned (seperate with commas):</TextBlock>
  919.             <TextBox Text="{Binding Path=NotifyTerms, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  920.                     FontSize="12"/>
  921.             <CheckBox IsChecked="{Binding NotifyOnWholeWordsOnly}"
  922.                      IsEnabled="False">Only notify on whole words</CheckBox>
  923.             <CheckBox IsChecked="{Binding NotifyIncludesCharacterNames}">Notify when the terms are in character names</CheckBox>
  924.             <CheckBox IsChecked="{Binding NotifyIncludesMessages}">Notify when the terms are in messages</CheckBox>
  925.            
  926.         </StackPanel>
  927.     </ControlTemplate>
  928. </ResourceDictionary>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement