ReloadBehavior.

SetOnDataContextChanged(UIElement, bool) Method

Summary

Helper for setting OnDataContextChangedProperty on element. If the property is set to true, the transition of the MetroContentControl is triggered again when the DataContext is changed.
Namespace
MahApps.Metro.Behaviors
Containing Type
ReloadBehavior

Syntax

[Category(AppName.MahApps)]
[AttachedPropertyBrowsableForType(typeof(MetroContentControl))]
public static void SetOnDataContextChanged(UIElement element, bool value)

Attributes

Type Description
Category
AttachedPropertyBrowsableForType

Parameters

Name Type Description
element UIElement UIElement to set OnDataContextChangedProperty on.
value bool OnDataContextChanged property value.

Return Value

Type Description
void