Microsoft.Windows.Themes 命名空间

公开一组由 Windows Presentation Foundation 定义的主题。 Provides exposure to the set of themes defined by Windows Presentation Foundation. 在 WPF 中,主题是在系统级别上定义的一组资源,它为应用程序的控件和其他可视元素提供默认外观。 In WPF, a theme is a set of resources, defined at the system level, which provide the default appearance for controls and other visual elements of an application. WPF 主题是使用样式创建的,并包括 Luna、Aero、Royale 和 Classic。 WPF themes are created using styles and include Luna, Aero, Royale, and Classic. 只有 WPF 应用程序的工作区才能使用这些主题;形成窗口镶边的窗口边框和按钮的外观由 Win32 主题服务控制。 Only the client area of a WPF application uses these themes; the appearance of the window border and buttons that form the window chrome is controlled by the Win32 theme service.

BulletChrome

创建 Windows Presentation Foundation (WPF) Bullet 元素的特定于主题的外观。Creates the theme-specific look for Windows Presentation Foundation (WPF) Bullet elements. Bullet 定义 CheckBoxRadioButton 元素的外观。A Bullet defines the appearance of CheckBox and RadioButton elements.

ButtonChrome

为 .NET Framework Button 元素创建主题特定外观。Creates the theme-specific look for .NET Framework Button elements.

ClassicBorderDecorator

创建 Decorator 类型的特定于主题的外观,以与传统型主题一起使用。Creates the theme-specific look for Decorator types, for use with the Classic theme.

DataGridHeaderBorder

为 .NET Framework 4.5 DataGrid中的标题创建主题特定外观。Creates the theme specific-look for headers in .NET Framework 4.5 DataGrid.

ListBoxChrome

为 .NET Framework ListBox 元素创建主题特定外观。Creates the theme-specific look for .NET Framework ListBox elements.

PlatformCulture

提供由 .NET Framework 系统主题使用的区域性特定信息。Provides culture-specific information used by the .NET Framework system themes.

ProgressBarBrushConverter

创建用于绘制 BrushProgressBarCreates the Brush used to draw the ProgressBar.

ProgressBarHighlightConverter

创建用于为 DrawingBrush 绘制突出显示部分的 ProgressBarCreates a DrawingBrush used to draw the highlighting for the ProgressBar.

ScrollChrome

为 .NET Framework ScrollBar 元素创建主题特定外观。Creates the theme-specific look for .NET Framework ScrollBar elements.

SystemDropShadowChrome

创建投影效果的特定于主题的外观。Creates a theme specific look for drop shadow effects.

枚举

ClassicBorderStyle

指定要绘制的 Border 的类型。Specifics the type of Border to draw.

ScrollGlyph

描述用来表示 Thumb 的标志符号。Describes the glyphs used to represent the Thumb.

ThemeColor

表示 Microsoft 主题的可能的颜色变量。Represents possible color variants for the Microsoft themes.