ViewService Class

Associates visuals and editing model items.

Inheritance Hierarchy


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


Public MustInherit Class ViewService
public abstract class ViewService
public ref class ViewService abstract
type ViewService =  class end
public abstract class ViewService

The ViewService type exposes the following members.


  Name Description
Protected method ViewService Initializes a new instance of the ViewService class.



  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetModel When overridden in a derived class, gets the model corresponding to the specified view.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)



  Name Description
Public event LayoutUpdated When overridden in a derived class, occurs when the layout of the view has been changed.



The ViewService class maps visuals to underlying model items. The ModelService and ViewService classes are required for the designer to function. The 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.

Thread Safety

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

See Also


Microsoft.Windows.Design.Services Namespace




Other Resources

Editing Model Architecture

WPF Designer Extensibility