Class InputField
[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
BorderColorProperty
public static readonly BindableProperty BorderColorProperty
Field Value
BorderThicknessProperty
public static readonly BindableProperty BorderThicknessProperty
Field Value
ContentAutomationIdProperty
public static readonly BindableProperty ContentAutomationIdProperty
Field Value
ContentProperty
public static readonly BindableProperty ContentProperty
Field Value
CornerRadiusProperty
public static readonly BindableProperty CornerRadiusProperty
Field Value
FontAttributesProperty
public static readonly BindableProperty FontAttributesProperty
Field Value
FontAutoScalingEnabledProperty
public static readonly BindableProperty FontAutoScalingEnabledProperty
Field Value
FontFamilyProperty
public static readonly BindableProperty FontFamilyProperty
Field Value
FontSizeProperty
public static readonly BindableProperty FontSizeProperty
Field Value
IconProperty
public static readonly BindableProperty IconProperty
Field Value
InputBackgroundColorProperty
public static readonly BindableProperty InputBackgroundColorProperty
Field Value
InputBackgroundProperty
public static readonly BindableProperty InputBackgroundProperty
Field Value
TitleColorProperty
public static readonly BindableProperty TitleColorProperty
Field Value
TitleFontSizeProperty
public static readonly BindableProperty TitleFontSizeProperty
Field Value
TitleProperty
public static readonly BindableProperty TitleProperty
Field Value
iconValidation
protected Lazy<ContentView> iconValidation
Field Value
imageIcon
protected Lazy<Image> imageIcon
Field Value
labelValidation
protected Lazy<Label> labelValidation
Field Value
lastValidationState
protected bool lastValidationState
Field Value
Properties
AccentColor
public Color AccentColor { get; set; }
Property Value
Attachments
public IList<IView> Attachments { get; }
Property Value
BorderColor
public Color BorderColor { get; set; }
Property Value
BorderThickness
public double BorderThickness { get; set; }
Property Value
Content
public virtual View Content { get; set; }
Property Value
ContentAutomationId
public string ContentAutomationId { get; set; }
Property Value
CornerRadius
public double CornerRadius { get; set; }
Property Value
FontAttributes
public FontAttributes FontAttributes { get; set; }
Property Value
FontAutoScalingEnabled
public bool FontAutoScalingEnabled { get; set; }
Property Value
FontFamily
public string FontFamily { get; set; }
Property Value
FontSize
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
HasValue
public virtual bool HasValue { get; set; }
Property Value
Icon
public ImageSource Icon { get; set; }
Property Value
InputBackground
public Brush InputBackground { get; set; }
Property Value
InputBackgroundColor
public Color InputBackgroundColor { get; set; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
Title
public string Title { get; set; }
Property Value
TitleColor
public Color TitleColor { get; set; }
Property Value
TitleFontSize
[TypeConverter(typeof(FontSizeConverter))]
public double TitleFontSize { get; set; }
Property Value
Validations
public List<IValidation> Validations { get; }
Property Value
border
protected Border border { get; }
Property Value
endIconsContainer
protected HorizontalStackLayout endIconsContainer { get; }
Property Value
innerGrid
protected Grid innerGrid { get; }
Property Value
labelTitle
protected Label labelTitle { get; }
Property Value
rootGrid
protected Grid rootGrid { get; }
Property Value
Methods
CheckAndShowValidations()
protected virtual void CheckAndShowValidations()
DisplayValidation()
public virtual void DisplayValidation()
GetValueForValidator()
protected virtual object GetValueForValidator()
Returns
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
objectargs
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
HandlerChangingEventArgsProvides 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
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
ValidationResults()
protected IEnumerable<(bool isValid, string message)> ValidationResults()