| WpfStylesSetEnsureDefaultStyles Method |
Sets the state of the ensure default styles feature.
Namespace:
TomsToolbox.Wpf.Styles
Assembly:
TomsToolbox.Wpf.Styles (in TomsToolbox.Wpf.Styles.dll)
Syntax public static void SetEnsureDefaultStyles(
Window obj,
bool value
)
Public Shared Sub SetEnsureDefaultStyles (
obj As Window,
value As Boolean
)
Parameters
- obj
- Type: System.WindowsWindow
The object. - value
- Type: SystemBoolean
If set to true, the system will ensure that the default styles are registered for the window.
If the default styles are not registered in the resources of the Application, the styles will be registered in the resources of the Window.
See Also