Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Controls in Windows Presentation Foundation (WPF) have a ControlTemplate that contains the visual tree of that control. You can change the structure and appearance of a control by modifying the ControlTemplate of that control. There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate.
The desktop themes determine which resource dictionary is used. The resource dictionaries for the desktop themes are included with your Visual Studio installation. The folder that contains the themes is generally located at C:\Program Files (x86)\Microsoft Visual Studio\2019\<visual studio edition>\DesignTools\SystemThemes\wpf, where <visual studio edition> represents the edition of Visual Studio.
The following table describes the resource dictionary file names and their corresponding desktop themes.
Theme file | Desktop theme |
---|---|
Classic.xaml | Classic Windows look (from Windows 95, Windows 98, and Windows 2000) on the Windows XP operating system.. |
Luna.NormalColor.xaml | Default blue theme on Windows XP. |
Luna.Homestead.xaml | Olive theme on Windows XP. |
Luna.Metallic.xaml | Silver theme on Windows XP. |
Royale.NormalColor.xaml | Default theme on the Windows XP Media Center Edition operating system. |
Aero.NormalColor.xaml | Default theme on the Windows Vista operating system. |
Button Styles and Templates
Calendar Styles and Templates
CheckBox Styles and Templates
ComboBox Styles and Templates
ContextMenu Styles and Templates
DataGrid Styles and Templates
DatePicker Styles and Templates
DocumentViewer Styles and Templates
Expander Styles and Templates
Frame Styles and Templates
GroupBox Styles and Templates
Label Styles and Templates
ListBox Styles and Templates
ListView Styles and Templates
Menu Styles and Templates
NavigationWindow Styles and Templates
PasswordBox Styles and Templates
ProgressBar Styles and Templates
RadioButton Styles and Templates
RepeatButton Styles and Templates
ScrollBar Styles and Templates
ScrollViewer Styles and Templates
Slider Styles and Templates
StatusBar Styles and Templates
TabControl Styles and Templates
TextBox Styles and Templates
Thumb Styles and Templates
ToggleButton Styles and Templates
ToolBar Styles and Templates
ToolTip Styles and Templates
TreeView Styles and Templates
Window Styles and Templates
.NET Desktop feedback feedback
.NET Desktop feedback is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Design consistent .NET MAUI XAML pages by using shared resources - Training
Learn how to use static and dynamic shared resources to build a .NET Multi-platform App UI (MAUI) user interface. And see how styles can make the user interface both consistent and accessible.