I want to adjust the height of the Editor COntrol according to the number of lines in an editor when text change.
Can you please explain How can I do it ?
The Editor is in a GridView. I tried many thing that I searched in google and I tried Xlabs.forms ExtendedEditor too. But still I couldn't solve it.
Here i my code..
<Grid ColumnSpacing="5" BackgroundColor="LightGray" HeightRequest="-1" Padding="10,10,10,10"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="45"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="45"/> </Grid.ColumnDefinitions> <ffimageloading:CachedImage Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" HorizontalOptions="Center" VerticalOptions="Start" HeightRequest="40" WidthRequest="40" DownsampleToViewSize="true" Source = "Plus.png"> <ffimageloading:CachedImage.GestureRecognizers> <TapGestureRecognizer x:Name="tgrAddImage" NumberOfTapsRequired="1" Tapped="tgrAddImage_Tapped"></TapGestureRecognizer> </ffimageloading:CachedImage.GestureRecognizers> </ffimageloading:CachedImage> <Editor x:Name="txtMessage" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" TextChanged="txtMessage_TextChanged"> </Editor> <ffimageloading:CachedImage Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" HorizontalOptions="Center" VerticalOptions="Start" HeightRequest="40" WidthRequest="40" DownsampleToViewSize="true" Source = "Send.png"> </ffimageloading:CachedImage> </Grid>