Skip to main content

Automatic Template Overriding for Default Controls

When DevExpress assemblies are being loaded, our theming mechanism automatically loads custom templates for default controls and applies them. This behavior provides a consistent appearance of stock and DevExpress controls.

The following controls are affected:

  • Windows.UI.Xaml.Controls.Button
  • Windows.UI.Xaml.Controls.CheckBox
  • Windows.UI.Xaml.Controls.ComboBox
  • Windows.UI.Xaml.Controls.HyperlinkButton
  • Windows.UI.Xaml.Controls.ListBox
  • Windows.UI.Xaml.Controls.ProgressBar
  • Windows.UI.Xaml.Controls.ProgressRing
  • Windows.UI.Xaml.Controls.RadioButton
  • Windows.UI.Xaml.Controls.Primitives.ScrollBar
  • Windows.UI.Xaml.Controls.Slider
  • Windows.UI.Xaml.Controls.TextBox
  • Windows.UI.Xaml.Controls.Primitives.ToggleButton
  • Windows.UI.Xaml.Controls.ToggleSwitch

To prevent custom templates from being applied, set the static DevExpress.Core.ThemeManager.OverrideSystemControlTemplates property to false in the application’s constructor.

sealed partial class App : Application {
        public App() {
              DevExpress.Core.ThemeManager.OverrideSystemControlTemplates = false;
              ...
        }
...