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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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 memberDefaultsObsolete.
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 Gets the WindowTitleDecorator
Public Extension MethodRegisterDefault Registers the default styles for the common controls and sets the default style for the Window.
Public Extension MethodRegisterDefaultStyles Registers the default styles for the common controls.
Public Extension MethodRegisterDefaultWindowStyle 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 Sets the WindowTitleDecorator
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 propertyEnsureDefaultStyles Identifies the EnsureDefaultStyles dependency property
Public 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 propertyWindowTitleDecorator Allows to add content to the title bar of the window.
Top
See Also