| 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
)
<ExtensionAttribute>
Public Shared Function RegisterDefaultWindowStyle (
resourceDictionary As ResourceDictionary
) As ResourceDictionary
Parameters
- resourceDictionary
- Type: System.WindowsResourceDictionary
The resource dictionary containing the window style.
Return Value
Type:
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