Home > Enterprise >  .Net Maui XAML Input field component
.Net Maui XAML Input field component

Time:03-15

I can't seem to find a simple text Input field to use in a .net maui xaml app. Looking at the docs in the User interface/Controls/Views section there is a a number of components handling user interaction/input such as checkbox and slider and even a searchfield-component (Which to me should only be a specialized input field), but no text input.

How do I make a Input field using Xaml in .Net Maui?

(I did find telerik, but I think it cost money and I was just looking for the "default" option)

CodePudding user response:

From what I understand from the question you are either looking for An Editor or an Entry.

I am guessing the documentation is still incomplete or is incorrect

Basic implementation for it would look something like that:

Small textbox:

<Entry
  MaxLength="20"
  Style="{StaticResource CommonEntryStyle}"
  Text="This is the text." />

Multiline:

<Editor
  MaxLength="20"
  Style="{StaticResource CommonEditorStyle}"
  Text="This is the text." />
  • Related