The Editor control doesn't have a LineBreakMode property like for example Labels do. I want to accomplish the same behavior as disabled word wrap on NotePad, where the lines don't wrap and a horizontal slider is shown automatically.
Any ides on how to make the Editor to NOT wrap the lines?
Label example:
<Label Text="Welcome to Xamarin Forms!" LineBreakMode="NoWrap"/>
The idea is to have multiple lines if the user presses Enter, but if not the line shouldn't wrap.
Updated:
<ScrollView Orientation="Both">
<Editor
x:Name="editor"
Placeholder="Once upon a time far far away there lived a bear. The bear lived in the woods all on his own." />
</ScrollView>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.