Click or drag to resize

WpfStylesRegisterDefaultWindowStyle Method

Registers the default window style from the window style found in the specified resourceDictionary.

Namespace:  TomsToolbox.Wpf.Styles
Assembly:  TomsToolbox.Wpf.Styles (in TomsToolbox.Wpf.Styles.dll)
Syntax
public static ResourceDictionary RegisterDefaultWindowStyle(
	this ResourceDictionary resourceDictionary
)

Parameters

resourceDictionary
Type: System.WindowsResourceDictionary
The resource dictionary containing the window style.

Return Value

Type: ResourceDictionary
The resourceDictionary to enable fluent notation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ResourceDictionary. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Typical usage is:
C#
Resources.MergedDictionaries.Add(GetDefaultStyles().RegisterDefaultWindowStyle());
See Also