Class SkiaMauiEditor
public class SkiaMauiEditor : SkiaMauiElement, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, IHasAfterEffects, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ISkiaDisposable, IDisposable, ISkiaGestureListener
- Inheritance
-
SkiaMauiEditor
- Implements
- Inherited Members
- Extension Methods
Fields
ActionDone
public static string ActionDone
Field Value
ActionGo
public static string ActionGo
Field Value
ActionNext
public static string ActionNext
Field Value
ActionSearch
public static string ActionSearch
Field Value
ActionSend
public static string ActionSend
Field Value
CommandOnFocusChangedProperty
public static readonly BindableProperty CommandOnFocusChangedProperty
Field Value
CommandOnSubmitProperty
public static readonly BindableProperty CommandOnSubmitProperty
Field Value
CommandOnTextChangedProperty
public static readonly BindableProperty CommandOnTextChangedProperty
Field Value
FontFamilyProperty
public static readonly BindableProperty FontFamilyProperty
Field Value
FontSizeProperty
public static readonly BindableProperty FontSizeProperty
Field Value
FontWeightProperty
public static readonly BindableProperty FontWeightProperty
Field Value
IsFocusedProperty
public static readonly BindableProperty IsFocusedProperty
Field Value
KeyboardTypeProperty
public static readonly BindableProperty KeyboardTypeProperty
Field Value
MaxLinesProperty
public static readonly BindableProperty MaxLinesProperty
Field Value
PlaceholderFontFamilyProperty
public static readonly BindableProperty PlaceholderFontFamilyProperty
Field Value
PlaceholderFontSizeProperty
public static readonly BindableProperty PlaceholderFontSizeProperty
Field Value
PlaceholderHorizontalAlignmentProperty
public static readonly BindableProperty PlaceholderHorizontalAlignmentProperty
Field Value
PlaceholderLabel
protected SkiaLabel PlaceholderLabel
Field Value
PlaceholderTextColorProperty
public static readonly BindableProperty PlaceholderTextColorProperty
Field Value
PlaceholderTextProperty
public static readonly BindableProperty PlaceholderTextProperty
Field Value
PlaceholderVerticalAlignmentProperty
public static readonly BindableProperty PlaceholderVerticalAlignmentProperty
Field Value
ReturnTypeProperty
public static readonly BindableProperty ReturnTypeProperty
Field Value
TextColorProperty
public static readonly BindableProperty TextColorProperty
Field Value
TextProperty
public static readonly BindableProperty TextProperty
Field Value
Properties
CommandOnFocusChanged
public ICommand CommandOnFocusChanged { get; set; }
Property Value
CommandOnSubmit
public ICommand CommandOnSubmit { get; set; }
Property Value
CommandOnTextChanged
public ICommand CommandOnTextChanged { get; set; }
Property Value
Control
public MauiEditor Control { get; protected set; }
Property Value
FontFamily
public string FontFamily { get; set; }
Property Value
FontSize
public double FontSize { get; set; }
Property Value
FontWeight
public int FontWeight { get; set; }
Property Value
IsFocused
public bool IsFocused { get; set; }
Property Value
KeyboardType
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard KeyboardType { get; set; }
Property Value
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
PlaceholderFontFamily
public string PlaceholderFontFamily { get; set; }
Property Value
PlaceholderFontSize
public double PlaceholderFontSize { get; set; }
Property Value
PlaceholderHorizontalAlignment
public DrawTextAlignment PlaceholderHorizontalAlignment { get; set; }
Property Value
PlaceholderText
public string PlaceholderText { get; set; }
Property Value
PlaceholderTextColor
public Color PlaceholderTextColor { get; set; }
Property Value
PlaceholderVerticalAlignment
public TextAlignment PlaceholderVerticalAlignment { get; set; }
Property Value
ReturnType
public ReturnType ReturnType { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
TextColor
public Color TextColor { get; set; }
Property Value
WillClipBounds
Used to check whether to apply IsClippedToBounds property
public override bool WillClipBounds { get; }
Property Value
Methods
AdaptControlSize()
protected virtual void AdaptControlSize()
CheckChildAdded()
protected override void CheckChildAdded()
CreatePlaceholderLabel()
protected virtual SkiaLabel CreatePlaceholderLabel()
Returns
FocusNative()
protected void FocusNative()
GetOrCreateControl()
protected virtual Editor GetOrCreateControl()
Returns
MapProps(MauiEditor)
protected virtual void MapProps(MauiEditor control)
Parameters
controlMauiEditor
OnDisposing()
Base performs some cleanup actions with Superview
public override void OnDisposing()
OnFocusChanged(bool)
Called by DrawnUi when the focus changes
public bool OnFocusChanged(bool focus)
Parameters
focusbool
Returns
OnLayoutChanged()
DrawingRect size changed
protected override void OnLayoutChanged()
OnMeasuring(float, float, float)
Input in POINTS
public override ScaledSize OnMeasuring(float widthConstraint, float heightConstraint, float scale)
Parameters
Returns
Paint(DrawingContext)
This is the main drawing routine you should override to draw something. Base one paints background color inside DrawingRect that was defined by Arrange inside base.Draw. Pass arguments if you want to use some time-frozen data for painting at any time from any thread..
protected override void Paint(DrawingContext ctx)
Parameters
ctxDrawingContext
ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)
public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)
Parameters
argsSkiaGesturesParametersapplyGestureEventProcessingInfo
Returns
SetFocus(bool)
public void SetFocus(bool focus)
Parameters
focusbool
SetFocusInternal(bool)
protected void SetFocusInternal(bool value)
Parameters
valuebool
SubscribeToControl(bool)
protected void SubscribeToControl(bool subscribe)
Parameters
subscribebool
UnfocusNative()
protected void UnfocusNative()
UpdateControl()
public virtual void UpdateControl()
UpdatePlaceholderLabel()
protected virtual void UpdatePlaceholderLabel()
UpdatePlaceholderVisibility()
protected virtual void UpdatePlaceholderVisibility()
Events
FocusChanged
public event EventHandler<bool> FocusChanged
Event Type
TextChanged
public event EventHandler<string> TextChanged
Event Type
TextSubmitted
public event EventHandler<string> TextSubmitted