Skip to main content
Version: 3.5

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.

public class ResponsivePropertyAttribute : Attribute

Constructors​

Instance memberResponsivePropertyAttribute()​

Identifies the property as responsive property.

Instance memberResponsivePropertyAttribute(enabled)​

Enables or disables the responsive property behavior for the property where this attribute is declared.

NameTypeDescription
enabledBooleanTrue to enable the responsive behavior; false to disable it.

Instance memberResponsivePropertyAttribute(sourceProperty)​

Enables or disables the responsive property behavior for the property where this attribute is declared.

NameTypeDescription
sourcePropertyStringName of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal.

Instance memberResponsivePropertyAttribute(enabled, sourceProperty)​

Enables or disables the responsive property behavior for the property where this attribute is declared.

NameTypeDescription
enabledBooleanTrue to enable the responsive behavior; false to disable it.
sourcePropertyStringName of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal.

Properties​

Instance memberIsResponsive​

Boolean: Returns whether the property allows responsive values.

Instance memberSourceProperty​

String: Returns the name of the property to use to read the raw (not inherited) value.

Methods​

Static memberGetResponsiveAttribute(property)​

Returns the ResponsivePropertyAttribute attribute associated with property.

ParameterTypeDescription
propertyPropertyDescriptorProperty to check.

Returns: ResponsivePropertyAttribute. A ResponsivePropertyAttribute or null.

Static memberIsResponsiveProperty(property)​

Returns true if the property is marked responsive.

ParameterTypeDescription
propertyPropertyDescriptorProperty to check.

Returns: Boolean. True if the property is a responsive property.