ViewService Class

.NET Framework (current version)
 

The ViewService class maps visuals to underlying model items.

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

System.Object
  System.Activities.Presentation.Services.ViewService
    System.Activities.Presentation.View.WorkflowViewService

public abstract class ViewService

NameDescription
System_CAPS_protmethodViewService()

Creates a new ViewService.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetModel(DependencyObject)

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

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetView(ModelItem)

Returns the view corresponding to the given model, or null if there is no view for the model.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The ModelService and ViewService classes are required for the designer to function. The T:System.Activities.Design.View.DesignerView class, which is responsible for processing user input and routing it to commands, requires both of these services to map user input back to the model.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: