Share via


CurrentDesignerView Class

A context item that is used to store and report the current designer view that is being used in the editing context.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.ContextItem
    Microsoft.Windows.Design.Interaction.CurrentDesignerView

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

Syntax

'Declaration
Public NotInheritable Class CurrentDesignerView _
    Inherits ContextItem
public sealed class CurrentDesignerView : ContextItem
public ref class CurrentDesignerView sealed : public ContextItem
[<Sealed>]
type CurrentDesignerView =  
    class
        inherit ContextItem
    end
public final class CurrentDesignerView extends ContextItem

The CurrentDesignerView type exposes the following members.

Constructors

  Name Description
Public method CurrentDesignerView Initializes a new instance of the CurrentDesignerView class.

Top

Properties

  Name Description
Public property ItemType Gets the item type of this item. (Overrides ContextItem.ItemType.)
Public property View Gets the designer view that is currently being used.

Top

Methods

  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 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.)
Protected method OnItemChanged Called on a context item before it is stored in the context item manager. (Inherited from ContextItem.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

CurrentDesignerView is used by DesignerView's FromContext method. DesignerView automatically adds this to the context on construction. You cannot change the designer view within a context layer, but you may create a new context layer and add a new view to that layer.

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.Interaction Namespace

Other Resources

WPF Designer Extensibility