Click or drag to resize

WpfStylesSetEnsureDefaultStyles Method

Sets the state of the ensure default styles feature.

Namespace: TomsToolbox.Wpf.Styles
Assembly: 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 SetEnsureDefaultStyles(
	Window obj,
	bool value
)

Parameters

obj  Window
The object.
value  Boolean
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