I need a text trimming behaviour in textbox of UWP when textbox is at normal state.
I need a text trimming behaviour in textbox of UWP when textbox is at normal state.
@gokulram-7970 For uwp app, the TextBlock control contains a TextTrimming property, however, the TextBox doesn’t support this property directly. Do you want to have the similar behavior like the TextBlock? You means the TextBox have the Text trimming effect when it lost the focus and the text width exceeds the TextBox width, right? Why don’t you think about the TextWrapping property of TextBox, which is easier to reach. I suggest you could implement the wrapping effect instead the TextTrimming effect .
@AryaDing-MSFT hi, TextWrapping property will increase textbox height.
@gokulram-7970 Could you please tell me Why you are doing this? If you just want to limit the input length, you could use String.SubString method to trim the Text in TextBox_TextChanged event when the input text length is up to limitation.
4 people are following this question.
UWP - Unable to Add ListBox Header (Not ListView)
How to control MapControl pushpin text from click events
How to add title text view in MasterDetailsView
How to use Windows system-provided "OK" string resource as CloseButtonText in ContentDialog
[UWP][XAML] Grid greedy column with trailing columns still visible