Table of Contents

Class SkiaMauiEntry

Namespace
DrawnUi.Controls
Assembly
DrawnUi.Maui.dll

Used to draw maui element over a skia canvas. Positions elelement using drawnUi layout and sometimes just renders element bitmap snapshot instead of displaying the real element, for example, when scrolling/animating.

public class SkiaMauiEntry : 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
SkiaMauiEntry
Implements
Inherited Members
Extension Methods

Constructors

SkiaMauiEntry()

public SkiaMauiEntry()

Fields

ActionDone

public static string ActionDone

Field Value

string

ActionGo

public static string ActionGo

Field Value

string

ActionNext

public static string ActionNext

Field Value

string

ActionSearch

public static string ActionSearch

Field Value

string

ActionSend

public static string ActionSend

Field Value

string

CommandOnFocusChangedProperty

public static readonly BindableProperty CommandOnFocusChangedProperty

Field Value

BindableProperty

CommandOnSubmitProperty

public static readonly BindableProperty CommandOnSubmitProperty

Field Value

BindableProperty

CommandOnTextChangedProperty

public static readonly BindableProperty CommandOnTextChangedProperty

Field Value

BindableProperty

FontFamilyProperty

public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

FontWeightProperty

public static readonly BindableProperty FontWeightProperty

Field Value

BindableProperty

IsFocusedProperty

public static readonly BindableProperty IsFocusedProperty

Field Value

BindableProperty

KeyboardTypeProperty

public static readonly BindableProperty KeyboardTypeProperty

Field Value

BindableProperty

MaxLinesProperty

public static readonly BindableProperty MaxLinesProperty

Field Value

BindableProperty

PlaceholderFontFamilyProperty

public static readonly BindableProperty PlaceholderFontFamilyProperty

Field Value

BindableProperty

PlaceholderFontSizeProperty

public static readonly BindableProperty PlaceholderFontSizeProperty

Field Value

BindableProperty

PlaceholderHorizontalAlignmentProperty

public static readonly BindableProperty PlaceholderHorizontalAlignmentProperty

Field Value

BindableProperty

PlaceholderLabel

protected SkiaLabel PlaceholderLabel

Field Value

SkiaLabel

PlaceholderTextColorProperty

public static readonly BindableProperty PlaceholderTextColorProperty

Field Value

BindableProperty

PlaceholderTextProperty

public static readonly BindableProperty PlaceholderTextProperty

Field Value

BindableProperty

PlaceholderVerticalAlignmentProperty

public static readonly BindableProperty PlaceholderVerticalAlignmentProperty

Field Value

BindableProperty

ReturnTypeProperty

public static readonly BindableProperty ReturnTypeProperty

Field Value

BindableProperty

TextColorProperty

public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextProperty

public static readonly BindableProperty TextProperty

Field Value

BindableProperty

Properties

CommandOnFocusChanged

public ICommand CommandOnFocusChanged { get; set; }

Property Value

ICommand

CommandOnSubmit

public ICommand CommandOnSubmit { get; set; }

Property Value

ICommand

CommandOnTextChanged

public ICommand CommandOnTextChanged { get; set; }

Property Value

ICommand

Control

public MauiEntry Control { get; protected set; }

Property Value

MauiEntry

FontFamily

public string FontFamily { get; set; }

Property Value

string

FontSize

public double FontSize { get; set; }

Property Value

double

FontWeight

public int FontWeight { get; set; }

Property Value

int

IsFocused

public bool IsFocused { get; set; }

Property Value

bool

IsSpellCheckEnabled

public bool IsSpellCheckEnabled { get; set; }

Property Value

bool

KeyboardType

[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard KeyboardType { get; set; }

Property Value

Keyboard

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

OldText

public string OldText { get; set; }

Property Value

string

PlaceholderFontFamily

public string PlaceholderFontFamily { get; set; }

Property Value

string

PlaceholderFontSize

public double PlaceholderFontSize { get; set; }

Property Value

double

PlaceholderHorizontalAlignment

public DrawTextAlignment PlaceholderHorizontalAlignment { get; set; }

Property Value

DrawTextAlignment

PlaceholderText

public string PlaceholderText { get; set; }

Property Value

string

PlaceholderTextColor

public Color PlaceholderTextColor { get; set; }

Property Value

Color

PlaceholderVerticalAlignment

public TextAlignment PlaceholderVerticalAlignment { get; set; }

Property Value

TextAlignment

ReturnType

public ReturnType ReturnType { get; set; }

Property Value

ReturnType

Text

public string Text { get; set; }

Property Value

string

TextColor

public Color TextColor { get; set; }

Property Value

Color

WillClipBounds

Used to check whether to apply IsClippedToBounds property

public override bool WillClipBounds { get; }

Property Value

bool

Methods

AdaptControlSize()

protected virtual void AdaptControlSize()

CheckChildAdded()

protected override void CheckChildAdded()

CreatePlaceholderLabel()

protected virtual SkiaLabel CreatePlaceholderLabel()

Returns

SkiaLabel

FocusNative()

protected void FocusNative()

GetOrCreateControl()

protected virtual Entry GetOrCreateControl()

Returns

Entry

MapProps(MauiEntry)

protected virtual void MapProps(MauiEntry control)

Parameters

control MauiEntry

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

focus bool

Returns

bool

OnLayoutChanged()

DrawingRect size changed

protected override void OnLayoutChanged()

OnLayoutReady()

Layout was changed with dimensions above zero. Rather a helper method, can you more generic OnLayoutChanged().

protected override void OnLayoutReady()

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

ctx DrawingContext

ProcessGestures(SkiaGesturesParameters, GestureEventProcessingInfo)

public override ISkiaGestureListener ProcessGestures(SkiaGesturesParameters args, GestureEventProcessingInfo apply)

Parameters

args SkiaGesturesParameters
apply GestureEventProcessingInfo

Returns

ISkiaGestureListener

SetFocus(bool)

public void SetFocus(bool focus)

Parameters

focus bool

SetFocusInternal(bool)

protected void SetFocusInternal(bool value)

Parameters

value bool

SubscribeToControl(bool)

protected void SubscribeToControl(bool subscribe)

Parameters

subscribe bool

UnfocusNative()

protected void UnfocusNative()

UpdateControl()

public virtual void UpdateControl()

UpdatePlaceholderLabel()

protected virtual void UpdatePlaceholderLabel()

UpdatePlaceholderVisibility()

protected virtual void UpdatePlaceholderVisibility()

WhenFocusChanged(bool)

protected virtual void WhenFocusChanged(bool state)

Parameters

state bool

Events

FocusChanged

public event EventHandler<bool> FocusChanged

Event Type

EventHandler<bool>

TextChanged

public event EventHandler<string> TextChanged

Event Type

EventHandler<string>

TextSubmitted

public event EventHandler<string> TextSubmitted

Event Type

EventHandler<string>