Table of Contents

Class InputField

Namespace
UraniumUI.Material.Controls
Assembly
UraniumUI.Material.dll
[ContentProperty("Content")]
public class InputField : ContentView, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IValidatable, INotifyPropertyChanged
Inheritance
InputField
Implements
Derived
Inherited Members
Extension Methods

Constructors

InputField()

public InputField()

Fields

AccentColorProperty

public static readonly BindableProperty AccentColorProperty

Field Value

BindableProperty

BorderColorProperty

public static readonly BindableProperty BorderColorProperty

Field Value

BindableProperty

BorderThicknessProperty

public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

ContentAutomationIdProperty

public static readonly BindableProperty ContentAutomationIdProperty

Field Value

BindableProperty

ContentProperty

public static readonly BindableProperty ContentProperty

Field Value

BindableProperty

CornerRadiusProperty

public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

FontAttributesProperty

public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontAutoScalingEnabledProperty

public static readonly BindableProperty FontAutoScalingEnabledProperty

Field Value

BindableProperty

FontFamilyProperty

public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

IconProperty

public static readonly BindableProperty IconProperty

Field Value

BindableProperty

InputBackgroundColorProperty

public static readonly BindableProperty InputBackgroundColorProperty

Field Value

BindableProperty

InputBackgroundProperty

public static readonly BindableProperty InputBackgroundProperty

Field Value

BindableProperty

TitleColorProperty

public static readonly BindableProperty TitleColorProperty

Field Value

BindableProperty

TitleFontSizeProperty

public static readonly BindableProperty TitleFontSizeProperty

Field Value

BindableProperty

TitleProperty

public static readonly BindableProperty TitleProperty

Field Value

BindableProperty

iconValidation

protected Lazy<ContentView> iconValidation

Field Value

Lazy<ContentView>

imageIcon

protected Lazy<Image> imageIcon

Field Value

Lazy<Image>

labelValidation

protected Lazy<Label> labelValidation

Field Value

Lazy<Label>

lastValidationState

protected bool lastValidationState

Field Value

bool

Properties

AccentColor

public Color AccentColor { get; set; }

Property Value

Color

Attachments

public IList<IView> Attachments { get; }

Property Value

IList<IView>

BorderColor

public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

public double BorderThickness { get; set; }

Property Value

double

Content

public virtual View Content { get; set; }

Property Value

View

ContentAutomationId

public string ContentAutomationId { get; set; }

Property Value

string

CornerRadius

public double CornerRadius { get; set; }

Property Value

double

FontAttributes

public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontAutoScalingEnabled

public bool FontAutoScalingEnabled { get; set; }

Property Value

bool

FontFamily

public string FontFamily { get; set; }

Property Value

string

FontSize

[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

HasValue

public virtual bool HasValue { get; set; }

Property Value

bool

Icon

public ImageSource Icon { get; set; }

Property Value

ImageSource

InputBackground

public Brush InputBackground { get; set; }

Property Value

Brush

InputBackgroundColor

public Color InputBackgroundColor { get; set; }

Property Value

Color

IsValid

public bool IsValid { get; }

Property Value

bool

Title

public string Title { get; set; }

Property Value

string

TitleColor

public Color TitleColor { get; set; }

Property Value

Color

TitleFontSize

[TypeConverter(typeof(FontSizeConverter))]
public double TitleFontSize { get; set; }

Property Value

double

Validations

public List<IValidation> Validations { get; }

Property Value

List<IValidation>

border

protected Border border { get; }

Property Value

Border

endIconsContainer

protected HorizontalStackLayout endIconsContainer { get; }

Property Value

HorizontalStackLayout

innerGrid

protected Grid innerGrid { get; }

Property Value

Grid

labelTitle

protected Label labelTitle { get; }

Property Value

Label

rootGrid

protected Grid rootGrid { get; }

Property Value

Grid

Methods

CheckAndShowValidations()

protected virtual void CheckAndShowValidations()

DisplayValidation()

public virtual void DisplayValidation()

GetValueForValidator()

protected virtual object GetValueForValidator()

Returns

object

InitializeValidation()

protected virtual void InitializeValidation()

OnApplyTemplate()

protected override void OnApplyTemplate()

OnCornerRadiusChanged()

protected virtual void OnCornerRadiusChanged()

OnFocusChanged(object, FocusEventArgs)

protected virtual void OnFocusChanged(object sender, FocusEventArgs args)

Parameters

sender object
args FocusEventArgs

OnHandlerChanged()

When overridden in a derived class, should raise the HandlerChanged event.

protected override void OnHandlerChanged()

Remarks

It is the implementor's responsibility to raise the HandlerChanged event.

OnHandlerChanging(HandlerChangingEventArgs)

When overridden in a derived class, should raise the HandlerChanging event.

protected override void OnHandlerChanging(HandlerChangingEventArgs args)

Parameters

args HandlerChangingEventArgs

Provides data for the HandlerChanging event.

Remarks

It is the implementor's responsibility to raise the HandlerChanging event.

OnIconChanged()

protected virtual void OnIconChanged()

OnSizeAllocated(double, double)

Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.

protected override void OnSizeAllocated(double width, double height)

Parameters

width double

The new width of the element.

height double

The new height of the element.

RegisterForEvents()

protected virtual void RegisterForEvents()

ReleaseEvents()

protected virtual void ReleaseEvents()

ResetValidation()

public virtual void ResetValidation()

Unfocus()

public void Unfocus()

UpdateOffset(double)

protected virtual void UpdateOffset(double value)

Parameters

value double

UpdateState()

protected virtual void UpdateState()

ValidateOne(IValidation)

protected (bool isValid, string message) ValidateOne(IValidation validation)

Parameters

validation IValidation

Returns

(bool isValid, string message)

ValidationResults()

protected IEnumerable<(bool isValid, string message)> ValidationResults()

Returns

IEnumerable<(bool isValid, string message)>