Class DefaultLayoutAttribute
Any layout generator that derives from DefaultLayoutGenerator will only be included in GetDefaultLayoutGenerators() if it is marked with this attribute
This specifies the layout is a default one to be used for certain layout/param combinations, and this attribute provides a priority for it to be used in
Without this attribute the layout generator can only be used explicitly, it will not be automatically chosen by the systemInherited Members
Namespace: LemonEdge.Client.Core.Views.DefaultLayouts.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class DefaultLayoutAttribute : Attribute
Constructors
DefaultLayoutAttribute()
Marks this DefaultLayoutGenerator implementation as one that can be used by the system as a default layout.
This will have a default priority of 0, meaning any other generator for the same layout with a higher priority will be chosen by the system instead of this one
Declaration
public DefaultLayoutAttribute()
DefaultLayoutAttribute(int)
Marks this DefaultLayoutGenerator implementation as one that can be used by the system (with the
specified priority
) as a default layout
Declaration
public DefaultLayoutAttribute(int priority)
Parameters
Type | Name | Description |
---|---|---|
int | priority | The priority used to determine if this generator should be used versus another that works on the same layout/param. The highest priority will always be used. System default ones have a priority of 0. |
Properties
Priority
The priority used to determine if this generator should be used versus another that works on the same layout/param. The highest priority will always be used. System default ones have a priority of 0.
Declaration
public int Priority { get; }
Property Value
Type | Description |
---|---|
int |