corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-5fca3c0e.md
Gets or sets whether the dx:ButtonThemeKey resource containing the Button template should use the ResourceKey=ButtonControlTemplate.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Data.Desktop.v25.2.dll
NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design
public static bool UseLightweightTemplatesInStandardButtons { get; set; }
Public Shared Property UseLightweightTemplatesInStandardButtons As Boolean
| Type | Description |
|---|---|
| Boolean |
true , to use ResourceKey=ButtonControlTemplate in the dx:ButtonThemeKey resource; otherwise false.
|
Modern themes ( VS2017 , Office2016SE , Office2019 , Windows10 , VS2019 ) now use new lightweight templates for the Button, TextBox, ListBox, CheckBox, ProgressBar, ScrollViewer, and Slider controls. Lightweight templates have better performance and support appearance customization properties that didn’t work before. This leads to the following changes:
false.Refer to the following breaking change ticket for more information on the UseLightweightTemplatesInStandardButtons compatibility property: BC4284.
See Also