Interface IMagnetElement
- Namespace
- Nalu.MagnetLayout
- Assembly
- Nalu.Maui.Layouts.dll
An interface for elements that can be part of a magnet layout.
public interface IMagnetElement : IMagnetElementBase
- Inherited Members
- Extension Methods
Methods
ApplyConstraints()
Applies all the constraints to the solver.
void ApplyConstraints()
DetectChanges()
Detects eventual changes and notifies dependent elements.
void DetectChanges()
FinalizeConstraints()
Eventually adds more constraints, or changes editable variables to complete the layout process.
void FinalizeConstraints()
SetStage(IMagnetStage?)
Sets or unsets the magnet layout context for this element.
void SetStage(IMagnetStage? stage)
Parameters
stageIMagnetStage
Remarks
This method is called when the element is added or removed from the magnet layout. Constraints should be added or removed in this method. It's not necessary to invoke Invalidate() here, as it is implicit.