Méthode | Description | |
---|---|---|
GetObservableContext ( DependencyObject view ) : ObservableObject |
Returns an ObservableObject{T} wrapper around the RegionContext value. The RegionContext will be set on any views (dependency objects) that are inside the IRegion.Views collection by the BindRegionContextToDependencyObjectBehavior Behavior. The RegionContext will also be set to the control that hosts the Region, by the SyncRegionContextWithHostBehavior Behavior. If the ObservableObject{T} wrapper does not already exist, an empty one will be created. This way, an observer can notify when the value is set for the first time.
|
public static GetObservableContext ( DependencyObject view ) : ObservableObject | ||
view | DependencyObject | Any view that hold the RegionContext value. |
Résultat | ObservableObject |