Version

Applying a Theme to the Supported Microsoft WPF Controls (ThemeManager)

Topic Overview

Purpose

This topic describes how to enable/disable the theming of the supported Microsoft WPF controls using Infragistics ThemeManager™.

Required background

The following topic is a prerequisites to understanding this topic:

Topic Purpose

This topic provides a detailed overview of Infragistics ThemeManager and its main features.

Supported Microsoft WPF controls

The following list shows the Microsoft WPF controls which are supported by the ThemeManager. You can see the available themes in the MS Controls Implicit Themes topic.

  • Button

  • CheckBox

  • ComboBox and ComboBoxItem

  • Expander

  • GridSplitter

  • GroupBox

  • Label

  • ListBox and ListBoxItem

  • PasswordBox

  • ProgressBar

  • RadioButton

  • RepeatButton

  • ScrollBar

  • ScrollViewer

  • Slider

  • TextBox

  • ToggleButton

Configuring the Theming of the supported Microsoft WPF controls

Overview

Using ThemeManager on an application level or on a page level results in theming of all presented controls. This includes the supported Microsoft WPF controls as well.

Use the StyleMicrosoftControls property if you want to turn off the theming of these controls.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Apply a specific theme to the supported Microsoft WPF controls

True (default)

Exclude the supported Microsoft WPF controls from theming

False

Example

The example code below demonstrates how to apply Office2013 theme to all controls except the supported Microsoft WPF controls:

In XAML:

<ig:ThemeManager.Theme>
    <ig:Office2013Theme StyleMicrosoftControls="False" />
</ig:ThemeManager.Theme>

In C#:

var office2013Theme = new Office2013Theme {StyleMicrosoftControls = false};
ThemeManager.SetTheme(LayoutRootGrid, office2013Theme);

In Visual Basic:

Dim office2013Theme = New Office2013Theme() With {
    .StyleMicrosoftControls = False
}
ThemeManager.SetTheme(LayoutRootGrid, office2013Theme)

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic describes how to apply a theme to a FrameworkElement using Infragistics ThemeManager.

This topic describes how to apply a theme to an application using Infragistics ThemeManager.

This topic describes how to create and apply a new custom theme to a control using Infragistics ThemeManager.

This topic describes how to extend an existing control theme using Infragistics Theme Manager.