Skip to main content
Version: 4.1

ResponsivePropertyAttribute

Namespace: Wisej.Base

Assembly: Wisej.Framework (4.1.0.0)

Identifies a property as a responsive property. Responsive properties are managed by the ResponsiveProfile class.

public class ResponsivePropertyAttribute : Attribute

Constructors

Instance member ResponsivePropertyAttribute()

Identifies the property as responsive property.

Instance member ResponsivePropertyAttribute(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 member ResponsivePropertyAttribute(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 member ResponsivePropertyAttribute(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 member IsResponsive

Boolean: Returns whether the property allows responsive values.

Instance member SourceProperty

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

Methods

Static member GetResponsiveAttribute(property)

Returns the ResponsivePropertyAttribute attribute associated with property.

ParameterTypeDescription
propertyPropertyDescriptorProperty to check.

Returns: ResponsivePropertyAttribute. A ResponsivePropertyAttribute or null.

Static member IsResponsiveProperty(property)

Returns true if the property is marked responsive.

ParameterTypeDescription
propertyPropertyDescriptorProperty to check.

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