ViewService.GetModel Method (DependencyObject)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
ArgumentNullException

view is null.

.NET Framework
Available since 4.0
Return to top
Show: