Question

AKwin on Tue, 28 May 2013 11:25:58


Hi  

How to Define Theme/SolidColorBrushes for High Contrast #1 and #2 in XAML.

Like we define  in XAML


 <ResourceDictionary x:Key="Default"> 
<ResourceDictionary x:Key="HighContrastBlack">
 <ResourceDictionary x:Key="HighContrastWhite">


Sponsored



Replies

Rob Caplan [MSFT] on Tue, 28 May 2013 15:37:35


It's "HighContrast". The variations (#1 vs. #2) are not exposed separately.

--Rob

AKwin on Wed, 29 May 2013 05:51:30


Ya , Can I Get List Static Resources (NAMES) that are System defined for HighContrast

  <ResourceDictionary x:Key="HighContrastCustom">
      <SolidColorBrush x:Key="TargetBackground" Color="{StaticResource SystemColorButtonFaceColor}"/>
      <SolidColorBrush x:Key="TargetBorderBrush" Color="{StaticResource SystemColorButtonTextColor}"/>
      <SolidColorBrush x:Key="Circle4Fill" Color="{StaticResource SystemColorHotlightColor}"/>
      <SolidColorBrush x:Key="Circle3Fill" Color="{StaticResource SystemColorHotlightColor}"/>
      <SolidColorBrush x:Key="Circle2Fill" Color="{StaticResource SystemColorHotlightColor}"/>
      <SolidColorBrush x:Key="Circle1Fill" Color="{StaticResource SystemColorHotlightColor}"/>
      <SolidColorBrush x:Key="CircleStroke" Color="{StaticResource SystemColorHighlightTextColor}"/>
    </ResourceDictionary>