ViewService.GetModel(DependencyObject) Method

Definition

Returns the model corresponding to the view, or null if there is no model that matches the view.

C#
public abstract System.Activities.Presentation.Model.ModelItem GetModel(System.Windows.DependencyObject view);

Parameters

view
DependencyObject

The view object that you want to find the model for.

Returns

The corresponding model, or null if there is no model for the given view object.

Exceptions

view is null.

Applies to

Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1