ResponsivePropertyAttribute
Wisej.Base.ResponsivePropertyAttribute
Namespace: Wisej.Base
Assembly: Wisej.Framework (3.0.0.0)
Identifies a property as a responsive property. Responsive properties are managed by the ResponsiveProfile class.
C#
VB.NET
1
public class ResponsivePropertyAttribute : Attribute
Copied!
1
Public Class ResponsivePropertyAttribute
2
Inherits Attribute
Copied!

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
Property to check.

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.