<ig:ThemeManager.Theme>
<ig:Office2013Theme StyleMicrosoftControls="False" />
</ig:ThemeManager.Theme>
This topic describes how to enable/disable the theming of the supported Microsoft WPF controls using Infragistics ThemeManager™.
The following topic is a prerequisites to understanding this topic:
This topic contains the following sections:
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
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.
The following table maps the desired configuration to the property settings that manage it.
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)
The following topics provide additional information related to this topic.