Edytuj

Udostępnij za pośrednictwem


ViewService.GetModel(DependencyObject) Method

Definition

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

public:
 abstract System::Activities::Presentation::Model::ModelItem ^ GetModel(System::Windows::DependencyObject ^ view);
public abstract System.Activities.Presentation.Model.ModelItem GetModel (System.Windows.DependencyObject view);
abstract member GetModel : System.Windows.DependencyObject -> System.Activities.Presentation.Model.ModelItem
Public MustOverride Function GetModel (view As DependencyObject) As ModelItem

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