Čítať v angličtine Upraviť

Zdieľať cez


DesignerProperties Class

Definition

Provides attached properties used to communicate with a designer.

C#
public static class DesignerProperties
Inheritance
DesignerProperties

Remarks

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.

Fields

IsInDesignModeProperty

Identifies the IsInDesignMode attached property.

Attached Properties

IsInDesignMode

Gets or sets whether a DependencyObject is running in the context of a designer.

Methods

GetIsInDesignMode(DependencyObject)

Gets the value of the IsInDesignMode attached property for the specified UIElement.

SetIsInDesignMode(DependencyObject, Boolean)

Sets the value of the IsInDesignMode attached property to a specified element.

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10