Xamarin.form text appear to bottom

Elkin Espiritu 41 Reputation points
2021-04-20T16:03:18.02+00:00

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

to these 89560-image.png

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Answer accepted by question author
  1. JessieZhang-MSFT 7,721 Reputation points Microsoft External Staff
    2021-04-21T02:37:26.6+00:00

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.