Class MagnetBarrier
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Layouts.dll
A virtual line placed at the outermost Direction pole of a set of nodes.
[ContentProperty("Nodes")]
public sealed class MagnetBarrier : MagnetNode, INotifyPropertyChanged
- Inheritance
-
MagnetBarrier
- Implements
- Inherited Members
Remarks
A Left/Right barrier is a vertical line (usable as a horizontal anchor target); a Top/Bottom barrier is a horizontal line. Collapsed members are ignored.
Constructors
MagnetBarrier()
Initializes a new instance of the MagnetBarrier class.
public MagnetBarrier()
Properties
Direction
Gets or sets the pole of the members the barrier follows.
public MagnetPole Direction { get; set; }
Property Value
Margin
Gets or sets a margin pushing the barrier outward (positive values move a Right/Bottom barrier further right/down, a Left/Top barrier further left/up).
public double Margin { get; set; }
Property Value
Nodes
Gets or sets the identifiers of the member nodes (XAML: <x:String> items or a comma-separated attribute, Nodes="a,b").
[TypeConverter(typeof(MagnetNodeIdsTypeConverter))]
public IList<string> Nodes { get; set; }
Property Value
Remarks
The setter replaces the contents: the backing list never changes identity.
Methods
With(params BindableObject[])
Adds members given as views carrying Magnet.MagnetId (fluent).
public MagnetBarrier With(params BindableObject[] elements)
Parameters
elementsBindableObject[]
Returns
With(params MagnetNode[])
Adds members given as nodes (fluent).
public MagnetBarrier With(params MagnetNode[] elements)
Parameters
elementsMagnetNode[]
Returns
With(params string[])
Adds members (fluent).
public MagnetBarrier With(params string[] elements)
Parameters
elementsstring[]