Class DesignerProperties
Provides attached properties that can be used to communicate with a designer.
Inheritance
System.Object
DesignerProperties
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public static class DesignerProperties
Fields
| Improve this Doc View SourceIsInDesignModeProperty
Identifies the System.ComponentModel.DesignerProperties.IsInDesignMode attached property.
Declaration
public static readonly DependencyProperty IsInDesignModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceIsInDesignTool
Gets a value that indicates whether the element is running in the context of a designer.
Declaration
public static bool IsInDesignTool { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetIsInDesignMode(DependencyObject)
Gets the value of the System.ComponentModel.DesignerProperties.IsInDesignMode attached property for the specified System.Windows.UIElement.
Declaration
public static bool GetIsInDesignMode(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The element from which the property value is read. |
Returns
Type | Description |
---|---|
System.Boolean | The System.ComponentModel.DesignerProperties.IsInDesignMode property value for the element. |
SetIsInDesignMode(DependencyObject, Boolean)
Sets the value of the System.ComponentModel.DesignerProperties.IsInDesignMode attached property to a specified element.
Declaration
public static void SetIsInDesignMode(DependencyObject element, bool value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The element to which the attached property is written. |
System.Boolean | value | The needed System.Boolean value. |