Table of Contents

Class MauiEditor

Namespace
DrawnUi.Controls
Assembly
DrawnUi.Maui.dll
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

BindableProperty

ReturnTypeProperty

public static readonly BindableProperty ReturnTypeProperty

Field Value

BindableProperty

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

int

NeededHeight

public double NeededHeight { get; set; }

Property Value

double

ReturnType

public ReturnType ReturnType { get; set; }

Property Value

ReturnType

Methods

ArrangeOverride(Rect)

Allows subclasses to implement custom Arrange logic during a controls layout pass.

protected override Size ArrangeOverride(Rect bounds)

Parameters

bounds Rect

The 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

widthConstraint double

The suggested maximum width constraint for the element to render.

heightConstraint double

The suggested maximum height constraint for the element to render.

flags MeasureFlags

A 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.