Share via


ViewService.GetModel Method

When overridden in a derived class, gets the model corresponding to the specified view.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function GetModel ( _
    view As ViewItem _
) As ModelItem
public abstract ModelItem GetModel(
    ViewItem view
)
public:
virtual ModelItem^ GetModel(
    ViewItem^ view
) abstract
abstract GetModel : 
        view:ViewItem -> ModelItem 
public abstract function GetModel(
    view : ViewItem
) : ModelItem

Parameters

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
The model corresponding to the specified view, or nulla null reference (Nothing in Visual Basic) if no model is found.

Exceptions

Exception Condition
ArgumentNullException

view is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ViewService Class

Microsoft.Windows.Design.Services Namespace

ModelItem

DesignerView

ModelService

Other Resources

Editing Model Architecture

WPF Designer Extensibility