ResponsivePropertyAttribute

Wisej.Base.ResponsivePropertyAttribute

Namespace: Wisej.Base

Assembly: Wisej.Framework (2.5.0.0)

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

public class ResponsivePropertyAttribute : 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

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

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

True to enable the responsive behavior; false to disable it.

sourceProperty

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

Property to check.

Returns: ResponsivePropertyAttribute. A ResponsivePropertyAttribute or null.

IsResponsiveProperty(property)

Returns true if the property is marked responsive.

Parameter
Type
Description

property

Property to check.

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

Last updated

Was this helpful?