| WpfStylesRegisterDefaultWindowStyle Method |
Registers the default window style from the window style found in the specified resourceDictionary.
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 ResourceDictionary RegisterDefaultWindowStyle(
this ResourceDictionary resourceDictionary
)
<ExtensionAttribute>
Public Shared Function RegisterDefaultWindowStyle (
resourceDictionary As ResourceDictionary
) As ResourceDictionary
Parameters
- resourceDictionary ResourceDictionary
- The resource dictionary containing the window style.
Return Value
ResourceDictionaryThe
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:
Resources.MergedDictionaries.Add(GetDefaultStyles().RegisterDefaultWindowStyle());
See Also