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
MarginProperty
Bindable property for Margin.
public static readonly BindableProperty MarginProperty
Field Value
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
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
OnMarginChanged(double, double)
Invoked when the Margin property changes.
protected abstract void OnMarginChanged(double oldValue, double newValue)