Udostępnij za pośrednictwem


DesignerView Class

Provides a visual design surface for the designer.

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

Syntax

'Declaration
Public Class DesignerView _
    Inherits Decorator
'Usage
Dim instance As DesignerView
public class DesignerView : Decorator
public ref class DesignerView : public Decorator
public class DesignerView extends Decorator

Remarks

To make your user interface (UI) designable, assign the root element of your designer’s UI to the Child property of DesignerView and set the Context property to the editing context for the designer.

[C#]

DesignerView view = new DesignerView();
view.Child = documentManager.View;
view.Context = editingContext;

The DesignerView class provides support for adorners, which are pieces of UI that adorn another piece of UI. For example, sizing handles are adorners.

DesignerView routes user input to commands on adorners, tools, and tasks. For more information, see Adorner Architecture.

Inheritance Hierarchy

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.DependencyObject
      System.Windows.Media.Visual
        System.Windows.UIElement
          System.Windows.FrameworkElement
            System.Windows.Controls.Decorator
              Microsoft.Windows.Design.Interaction.DesignerView

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

DesignerView Members

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture