ResponsivePropertyAttribute
Namespace: Wisej.Base
Assembly: Wisej.Framework (3.5.0.0)
Identifies a property as a responsive property. Responsive properties are managed by the ResponsiveProfile class.
- C#
- VB.NET
public class ResponsivePropertyAttribute : Attribute
Public Class ResponsivePropertyAttribute
Inherits Attribute
Constructors
ResponsivePropertyAttribute()
Identifies the property as responsive property.
ResponsivePropertyAttribute(enabled)
Enables or disables the responsive property behavior for the property where this attribute is declared.
| Name | Type | Description |
|---|---|---|
| enabled | Boolean | True to enable the responsive behavior; false to disable it. |
ResponsivePropertyAttribute(sourceProperty)
Enables or disables the responsive property behavior for the property where this attribute is declared.
| Name | Type | Description |
|---|---|---|
| sourceProperty | String | Name of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal. |
ResponsivePropertyAttribute(enabled, sourceProperty)
Enables or disables the responsive property behavior for the property where this attribute is declared.
| Name | Type | Description |
|---|---|---|
| enabled | Boolean | True to enable the responsive behavior; false to disable it. |
| sourceProperty | String | Name of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal. |
Properties
IsResponsive
Boolean: Returns whether the property allows responsive values.
SourceProperty
String: Returns the name of the property to use to read the raw (not inherited) value.
Methods
GetResponsiveAttribute(property)
Returns the ResponsivePropertyAttribute attribute associated with property.
| Parameter | Type | Description |
|---|---|---|
| property | PropertyDescriptor | Property to check. |
Returns: ResponsivePropertyAttribute. A ResponsivePropertyAttribute or null.
IsResponsiveProperty(property)
Returns true if the property is marked responsive.
| Parameter | Type | Description |
|---|---|---|
| property | PropertyDescriptor | Property to check. |
Returns: Boolean. True if the property is a responsive property.