TextBox : Control

Implemented for: all platforms supported by Uno Platform

This document lists all properties, methods, and events of TextBox that are currently implemented by the Uno Platform. See the WinUI documentation for detailed usage guidelines which all automatically apply to Uno Platform.

To better understand how TextBox works, you can use the Uno Gallery or run your own tests on the Uno Playground.

Implemented properties

Property Supported on
string PlaceholderText all platforms supported by Uno Platform
Brush PlaceholderForeground all platforms supported by Uno Platform
int MaxLength all platforms supported by Uno Platform
bool IsSpellCheckEnabled all platforms supported by Uno Platform
bool IsReadOnly all platforms supported by Uno Platform
InputScope InputScope all platforms supported by Uno Platform
DataTemplate HeaderTemplate all platforms supported by Uno Platform
object Header all platforms supported by Uno Platform
object Description all platforms supported by Uno Platform
CharacterCasing CharacterCasing Android
bool PreventKeyboardDisplayOnProgrammaticFocus Android
bool AcceptsReturn all platforms supported by Uno Platform
string SelectedText all platforms supported by Uno Platform
TextWrapping TextWrapping all platforms supported by Uno Platform
TextAlignment TextAlignment all platforms supported by Uno Platform
string Text all platforms supported by Uno Platform
int SelectionStart all platforms supported by Uno Platform
int SelectionLength all platforms supported by Uno Platform
SolidColorBrush SelectionHighlightColor all platforms supported by Uno Platform
bool CanUndo Skia
bool CanRedo Skia
DependencyProperty AcceptsReturnProperty all platforms supported by Uno Platform
DependencyProperty CanRedoProperty Skia
DependencyProperty CanUndoProperty Skia
DependencyProperty CharacterCasingProperty Android
DependencyProperty DescriptionProperty all platforms supported by Uno Platform
DependencyProperty HeaderProperty all platforms supported by Uno Platform
DependencyProperty HeaderTemplateProperty all platforms supported by Uno Platform
DependencyProperty InputScopeProperty all platforms supported by Uno Platform
DependencyProperty IsReadOnlyProperty all platforms supported by Uno Platform
DependencyProperty IsSpellCheckEnabledProperty all platforms supported by Uno Platform
DependencyProperty MaxLengthProperty all platforms supported by Uno Platform
DependencyProperty PlaceholderForegroundProperty all platforms supported by Uno Platform
DependencyProperty PlaceholderTextProperty all platforms supported by Uno Platform
DependencyProperty PreventKeyboardDisplayOnProgrammaticFocusProperty Android
DependencyProperty SelectionHighlightColorProperty all platforms supported by Uno Platform
DependencyProperty TextAlignmentProperty all platforms supported by Uno Platform
DependencyProperty TextProperty all platforms supported by Uno Platform
DependencyProperty TextWrappingProperty all platforms supported by Uno Platform

Implemented methods

Method Supported on
void Select(int, int) all platforms supported by Uno Platform
void SelectAll() all platforms supported by Uno Platform
void Undo() Skia
void Redo() Skia
void PasteFromClipboard() all platforms supported by Uno Platform
void CopySelectionToClipboard() all platforms supported by Uno Platform
void CutSelectionToClipboard() all platforms supported by Uno Platform
void ClearUndoRedoHistory() Skia

Implemented events

Event Supported on
TypedEventHandler<TextBox, TextBoxBeforeTextChangingEventArgs> BeforeTextChanging all platforms supported by Uno Platform
TextControlPasteEventHandler Paste Mobile, WASM, Skia
RoutedEventHandler SelectionChanged all platforms supported by Uno Platform
TextChangedEventHandler TextChanged all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextBoxTextChangingEventArgs> TextChanging all platforms supported by Uno Platform

Below are all properties, methods, and events of TextBox that are not currently implemented in Uno.

Not implemented properties

Property Not supported on
bool IsTextPredictionEnabled all platforms supported by Uno Platform
bool IsColorFontEnabled all platforms supported by Uno Platform
TextAlignment HorizontalTextAlignment all platforms supported by Uno Platform
CandidateWindowAlignment DesiredCandidateWindowAlignment all platforms supported by Uno Platform
CharacterCasing CharacterCasing iOS, MacOS, WASM, Skia
bool PreventKeyboardDisplayOnProgrammaticFocus iOS, MacOS, WASM, Skia
TextReadingOrder TextReadingOrder all platforms supported by Uno Platform
SolidColorBrush SelectionHighlightColorWhenNotFocused all platforms supported by Uno Platform
FlyoutBase SelectionFlyout all platforms supported by Uno Platform
bool CanUndo Xamarin, WASM
bool CanRedo Xamarin, WASM
bool CanPasteClipboardContent all platforms supported by Uno Platform
FlyoutBase ProofingMenuFlyout all platforms supported by Uno Platform
DependencyProperty CanPasteClipboardContentProperty all platforms supported by Uno Platform
DependencyProperty CanRedoProperty Xamarin, WASM
DependencyProperty CanUndoProperty Xamarin, WASM
DependencyProperty CharacterCasingProperty iOS, MacOS, WASM, Skia
DependencyProperty DesiredCandidateWindowAlignmentProperty all platforms supported by Uno Platform
DependencyProperty HorizontalTextAlignmentProperty all platforms supported by Uno Platform
DependencyProperty IsColorFontEnabledProperty all platforms supported by Uno Platform
DependencyProperty IsTextPredictionEnabledProperty all platforms supported by Uno Platform
DependencyProperty PreventKeyboardDisplayOnProgrammaticFocusProperty iOS, MacOS, WASM, Skia
DependencyProperty ProofingMenuFlyoutProperty all platforms supported by Uno Platform
DependencyProperty SelectionFlyoutProperty all platforms supported by Uno Platform
DependencyProperty SelectionHighlightColorWhenNotFocusedProperty all platforms supported by Uno Platform
DependencyProperty TextReadingOrderProperty all platforms supported by Uno Platform

Not implemented methods

Method Not supported on
Rect GetRectFromCharacterIndex(int, bool) all platforms supported by Uno Platform
IAsyncOperation<IReadOnlyList> GetLinguisticAlternativesAsync() all platforms supported by Uno Platform
void Undo() Xamarin, WASM
void Redo() Xamarin, WASM
void ClearUndoRedoHistory() Xamarin, WASM

Not implemented events

Event Not supported on
TypedEventHandler<TextBox, CandidateWindowBoundsChangedEventArgs> CandidateWindowBoundsChanged all platforms supported by Uno Platform
ContextMenuOpeningEventHandler ContextMenuOpening all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextControlCopyingToClipboardEventArgs> CopyingToClipboard all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextControlCuttingToClipboardEventArgs> CuttingToClipboard all platforms supported by Uno Platform
TextControlPasteEventHandler Paste MacOS
TypedEventHandler<TextBox, TextBoxSelectionChangingEventArgs> SelectionChanging all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextCompositionChangedEventArgs> TextCompositionChanged all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextCompositionEndedEventArgs> TextCompositionEnded all platforms supported by Uno Platform
TypedEventHandler<TextBox, TextCompositionStartedEventArgs> TextCompositionStarted all platforms supported by Uno Platform

Last updated Tuesday, 22 October 2024 15:31.