I am using Editor in Xaml , in UI i am able to see an Editor but when i am going to use it like after entering some words and pressing enter the line moves up and is not visible .
@Ghani said:
i want it to be worked in xamarin forms .
i think layoutOptions Wont work in xamarin forms
If not solved yet.. VerticalOptions="FillAndExpand" works in xaml files.
My problem with Editor Control was showing multi line text. It wasn't automatically wrapping by itself.
My solution is setting the orientation of the parent StackLayout.
With Orientation="Vertical" the editor automatically shows the text properly. With horizontal it exceed the page margin.
@IvanFranchi StackLayout orientation is vertical by default. A solution would have to also work with a horizontally orientated layout. Difficult to provide a solution if the code/xaml is not posted with question.
Answers
Does your Editor occupy all free space? Have you set something like VerticalOptions = FillAndExpand
https://developer.xamarin.com/api/property/Xamarin.Forms.View.VerticalOptions/
i haven't set VerticalOptions = FillAndExpand.
below is like what i have
This i What i have as if now.
Try to set
I think you have only one row because your height is too small
i want it to be worked in xamarin forms .
i think layoutOptions Wont work in xamarin forms
This is what I do to get this working:
Put this inside a Grid, with automatic Rowheight set and it will expand as you expect.
Best regards
Julian
LayoutOptions is for Xamarin Forms
If not solved yet..
VerticalOptions="FillAndExpand"
works in xaml files.My problem with
Editor Control
was showing multi line text. It wasn't automatically wrapping by itself.My solution is setting the orientation of the parent StackLayout.
With
Orientation="Vertical"
the editor automatically shows the text properly. With horizontal it exceed the page margin.@IvanFranchi StackLayout orientation is vertical by default. A solution would have to also work with a horizontally orientated layout. Difficult to provide a solution if the code/xaml is not posted with question.
Late answer, but might save some people some time. Just set AutoSize="TextChanges" on the Editor