Table of Contents

Class BarrierBase

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

Represents guideline base class for magnet layout.

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

Fields

ElementsProperty

Bindable property for Elements.

public static readonly BindableProperty ElementsProperty

Field Value

BindableProperty

MarginProperty

Bindable property for Margin.

public static readonly BindableProperty MarginProperty

Field Value

BindableProperty

Properties

Elements

Gets or sets the elements that this barrier is constrained to.

[TypeConverter(typeof(ElementIdsConverter))]
public string[]? Elements { get; set; }

Property Value

string[]

Margin

Gets or sets a maring used to Margin the barrier.

public double Margin { get; set; }

Property Value

double

Remarks

Adds up to the barrier Margin property.

Methods

OnElementsChanged(string[]?, string[]?)

Invoked when the Elements property changes.

protected abstract void OnElementsChanged(string[]? oldValue, string[]? newValue)

Parameters

oldValue string[]
newValue string[]

OnMarginChanged(double, double)

Invoked when the Margin property changes.

protected abstract void OnMarginChanged(double oldValue, double newValue)

Parameters

oldValue double
newValue double