| WpfStylesRegisterDefault Method |
Registers the default styles for the common controls and sets the default style for the Window.
Namespace: TomsToolbox.Wpf.StylesAssembly: TomsToolbox.Wpf.Styles (in TomsToolbox.Wpf.Styles.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static void RegisterDefault(
this ResourceDictionary resources
)
<ExtensionAttribute>
Public Shared Sub RegisterDefault (
resources As ResourceDictionary
)
Parameters
- resources ResourceDictionary
- 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