ViewService.GetModel Method (DependencyObject)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Activities.Presentation.Services
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract ModelItem GetModel(
	DependencyObject view


Type: System.Windows.DependencyObject

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

Return Value

Type: System.Activities.Presentation.Model.ModelItem

Returns the corresponding model as a T:System.Activities.Design.Model.ModelItem, or null if there is no model for the given view object.

Exception Condition

view is null.

.NET Framework
Available since 4.0
Return to top