Click or drag to resize

WpfStylesRegisterDefault Method

Registers the default styles for the common controls and sets the default style for the Window.

Namespace:  TomsToolbox.Wpf.Styles
Assembly:  TomsToolbox.Wpf.Styles (in TomsToolbox.Wpf.Styles.dll)
Syntax
public static void RegisterDefault(
	this ResourceDictionary resources
)

Parameters

resources
Type: System.WindowsResourceDictionary
The resource dictionary to which the default style definitions will be added, usually Resources.

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
This method calls OverrideMetadata for the window style, and can only be called once per process!

See Also