ViewService Class
Associates visuals and editing model items.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Services.ViewService
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustInherit Class ViewService
public abstract class ViewService
public ref class ViewService abstract
[<AbstractClass>]
type ViewService = class end
public abstract class ViewService
The ViewService type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ViewService | Initializes a new instance of the ViewService class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetModel | When overridden in a derived class, gets the model corresponding to the specified view. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
LayoutUpdated | When overridden in a derived class, occurs when the layout of the view has been changed. |
Top
Remarks
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
Reference
Microsoft.Windows.Design.Services Namespace