Table of Contents

Class GuidelineBase

Namespace
Nalu.MagnetLayout
Assembly
Nalu.Maui.Layouts.dll

Represents guideline base class for magnet layout.

public abstract class GuidelineBase : MagnetElementBase<GuidelineBase.ConstraintTypes>, INotifyPropertyChanged, IMagnetElement, IMagnetElementBase
Inheritance
GuidelineBase
Implements
Derived
Inherited Members
Extension Methods

Fields

FractionalPositionProperty

Bindable property for FractionalPosition.

public static readonly BindableProperty FractionalPositionProperty

Field Value

BindableProperty

PositionProperty

Bindable property for Position.

public static readonly BindableProperty PositionProperty

Field Value

BindableProperty

Properties

FractionalPosition

Gets or sets the position of the guideline relative to the IMagnetStage bounds.

public double FractionalPosition { get; set; }

Property Value

double

Remarks

Adds up to the Position property.

Position

Gets or sets the position in DP of the guideline.

public double Position { get; set; }

Property Value

double

Remarks

Adds up to the FractionalPosition property.

Methods

GetConstraintForPosition(IMagnetStage)

Gets the constraint for the specified position.

protected abstract IEnumerable<Constraint> GetConstraintForPosition(IMagnetStage stage)

Parameters

stage IMagnetStage

Returns

IEnumerable<Constraint>

GetIdentityConstraint(IMagnetStage)

Gets the constraint to enforce the two poles to be the same.

protected abstract IEnumerable<Constraint> GetIdentityConstraint(IMagnetStage stage)

Parameters

stage IMagnetStage

Returns

IEnumerable<Constraint>