CurrentDesignerView 类

更新:2007 年 11 月

用于存储和报告当前在编辑上下文中使用的设计器视图的上下文项。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public NotInheritable Class CurrentDesignerView _
    Inherits ContextItem
用法
Dim instance As CurrentDesignerView
public sealed class CurrentDesignerView : ContextItem
public ref class CurrentDesignerView sealed : public ContextItem
public final class CurrentDesignerView extends ContextItem

备注

CurrentDesignerView 供 DesignerViewFromContext 方法使用。DesignerView 自动在构造过程中将此添加到上下文中。您不能在上下文层内更改设计器视图,但可以创建一个新的上下文层并向该层中添加新视图。

继承层次结构

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

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

CurrentDesignerView 成员

Microsoft.Windows.Design.Interaction 命名空间

其他资源

WPF 设计器扩展性