Udostępnij za pośrednictwem


CurrentDesignerView Class

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

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

Syntax

'Declaration
Public NotInheritable Class CurrentDesignerView _
    Inherits ContextItem
'Usage
Dim instance As CurrentDesignerView
public sealed class CurrentDesignerView : ContextItem
public ref class CurrentDesignerView sealed : public ContextItem
public final class CurrentDesignerView extends ContextItem

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.

Inheritance Hierarchy

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

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

CurrentDesignerView Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility