Class MauiEditor
public class MauiEditor : Editor, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IEditorController, IViewController, IVisualElementController, IElementController, IElementConfiguration<Editor>, IEditor, IView, IElement, ITransform, ITextInput, IText, ITextStyle, IPlaceholder, ITextAlignment, ISmartNative
- Inheritance
-
MauiEditor
- Implements
- Inherited Members
- Extension Methods
Fields
MaxLinesProperty
public static readonly BindableProperty MaxLinesProperty
Field Value
ReturnTypeProperty
public static readonly BindableProperty ReturnTypeProperty
Field Value
Properties
MaxLines
WIth 1 will behave like an ordinary Entry, with -1 (auto) or explicitly set you get an Editor
public int MaxLines { get; set; }
Property Value
NeededHeight
public double NeededHeight { get; set; }
Property Value
ReturnType
public ReturnType ReturnType { get; set; }
Property Value
Methods
ArrangeOverride(Rect)
Allows subclasses to implement custom Arrange logic during a controls layout pass.
protected override Size ArrangeOverride(Rect bounds)
Parameters
boundsRectThe new bounds of the element.
Returns
- Size
The resulting size of this element's frame by the platform.
Remarks
Subclasses will still want to call ArrangeOverride(Rect) on the base class or call PlatformArrange(Rect) on the Handler .
Measure(double, double, MeasureFlags)
Returns the minimum size that an element needs in order to be displayed on the device.
[Obsolete("Use Microsoft.Maui.Size instead.")]
public override SizeRequest Measure(double widthConstraint, double heightConstraint, MeasureFlags flags = MeasureFlags.None)
Parameters
widthConstraintdoubleThe suggested maximum width constraint for the element to render.
heightConstraintdoubleThe suggested maximum height constraint for the element to render.
flagsMeasureFlagsA value that controls whether margins are included in the returned size.
Returns
- SizeRequest
The minimum size that an element needs in order to be displayed on the device.
Remarks
If the minimum size that the element needs in order to be displayed on the device is larger than can be accommodated by widthConstraint and heightConstraint, the return value may represent a rectangle that is larger in either one or both of those parameters.