locked
High Contrast Theme in XAML/C++ (High Contrast #1)

    Question

  • 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">

    Tuesday, May 28, 2013 11:25 AM

All replies

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

    --Rob

    Tuesday, May 28, 2013 3:37 PM
    Owner
  • 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>

    Wednesday, May 29, 2013 5:51 AM