DesignerProperties 类

定义

提供用于与设计器进行通信的附加属性。Provides attached properties used to communicate with a designer.

public ref class DesignerProperties abstract sealed
public static class DesignerProperties
type DesignerProperties = class
Public Class DesignerProperties
继承
DesignerProperties

注解

DesignerProperties类提供附加属性, 这些属性可用于在设计器中运行时查询控件的状态。The DesignerProperties class provides attached properties that can be used to query the state of a control when it is running in a designer. 设计器工具将设置在设计器中运行的对象的属性值。Designer tools will set values for properties on objects that are running in the designer.

字段

IsInDesignModeProperty

标识 IsInDesignMode 附加属性。Identifies the IsInDesignMode attached property.

附加属性

IsInDesignMode

获取或设置是否在设计器的上下文中运行 DependencyObjectGets or sets whether a DependencyObject is running in the context of a designer.

方法

GetIsInDesignMode(DependencyObject)

获取指定的 UIElementIsInDesignMode 附加属性值。Gets the value of the IsInDesignMode attached property for the specified UIElement.

SetIsInDesignMode(DependencyObject, Boolean)

IsInDesignMode 附加属性的值设置为指定的元素。Sets the value of the IsInDesignMode attached property to a specified element.

适用于