Click or drag to resize

WpfStyles Class

Helper methods to ease dealing with the styles.
Inheritance Hierarchy
SystemObject
  TomsToolbox.Wpf.StylesWpfStyles

Namespace:  TomsToolbox.Wpf.Styles
Assembly:  TomsToolbox.Wpf.Styles (in TomsToolbox.Wpf.Styles.dll)
Syntax
public static class WpfStyles

The WpfStyles type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberApplicationIconId
Gets or sets the alternate application icon identifier, i.e. the native resource id under which the application icon can be loaded.
Public propertyStatic memberApplicationTitle
Gets the applications title from the AssemblyTitleAttribute.
Public propertyStatic memberLargeApplicationIcon
Gets the large application icon (48x48) from the running executable.
Public propertyStatic memberMediumApplicationIcon
Gets the medium application icon (32x32) from the running executable.
Public propertyStatic memberSmallApplicationIcon
Gets the small application icon (16x16) from the running executable.
Top
Methods
  NameDescription
Public methodStatic memberDefaults Obsolete.
Returns a resource dictionary with the default styles for the window and the common controls.
Public methodStatic memberDefaults(Window) Obsolete.
Returns a resource dictionary with the default styles for the window and the common controls.
Public methodStatic memberGetDefaultStyles
Returns a resource dictionary with the default styles for the window and the common controls.
Public methodStatic memberGetEnsureDefaultStyles
Gets the state of the ensure default styles feature.
Public methodStatic memberGetIsCaptionVisible
Gets the value of the IsCaptionVisibleProperty.
Public methodStatic memberGetWindowTitleDecorator
Public methodStatic memberRegisterDefault
Registers the default styles for the common controls and sets the default style for the Window.
Public methodStatic memberRegisterDefaultStyles
Registers the default styles for the common controls.
Public methodStatic memberRegisterDefaultWindowStyle
Registers the default window style from the window style found in the specified resourceDictionary.
Public methodStatic memberSetEnsureDefaultStyles
Sets the state of the ensure default styles feature.
Public methodStatic memberSetIsCaptionVisible
Sets the value of the IsCaptionVisibleProperty.
Public methodStatic memberSetWindowTitleDecorator
Top
Fields
  NameDescription
Public fieldStatic memberEnsureDefaultStylesProperty
Identifies the EnsureDefaultStyles dependency property
Public fieldStatic memberIsCaptionVisibleProperty
A property to control the visibility of the caption area in a window. If the caption is e.g. included in a ribbon control, the caption should not be shown by the window.
Public fieldStatic memberWindowTitleDecoratorProperty
Identifies the WindowTitleDecorator attached property
Top
Attached Properties
  NameDescription
Public attached propertyEnsureDefaultStyles
Identifies the EnsureDefaultStyles dependency property
Public attached propertyIsCaptionVisible
A property to control the visibility of the caption area in a window. If the caption is e.g. included in a ribbon control, the caption should not be shown by the window.
Public attached propertyWindowTitleDecorator
Allows to add content to the title bar of the window.
Top
See Also