question

ElkinEspiritu-6857 avatar image
0 Votes"
ElkinEspiritu-6857 asked ElkinEspiritu-6857 commented

Xamarin.form text appear to bottom

how to make these text from these ![89575-image.png][2]


to these 89560-image.png


[2]: /answers/storage/attachments/89641-image.png


dotnet-xamarin
image.png (73.2 KiB)
image.png (32.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered ElkinEspiritu-6857 commented

Hello,


Welcome to our Microsoft Q&A platform!

Since we want to accept multi-line input, we could use Xamarin.Forms Editor to achieve this. The Editor control is used to accept multi-line input.
In addition, we also want the middle Editor to fill the rest space of the screen, we could set the VerticalOptions to FillAndExpand for the Editor.

You can refer to the following code:

 <ContentPage.Content>
     <StackLayout>
         <Entry Placeholder="Email" HeightRequest="60"/>
         <Entry Placeholder="Subject" HeightRequest="60"/>

         <Editor  VerticalOptions="FillAndExpand"      BackgroundColor="Yellow" />
         <Button Text="Send" VerticalOptions="End"></Button>
     </StackLayout>
 </ContentPage.Content>

The result is:
89727-image.png

Best Regards,

Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (19.1 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.