Maui for android scrollview issue

Haviv Elbsz 1,311 Reputation points

Hello all. I have a scrollview that works ok. Now I want to add a row of 3 buttons at the top that should not be scrolled when the scrollview scrolling. Is that possible. Thank you very much.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,586 Reputation points Microsoft Vendor


    For this requirement, you could use a Grid to isolate the buttons from the ScrollView.

    Please refer to the key snippets below:

                <RowDefinition Height="50" />
                <RowDefinition Height="*" />
            <HorizontalStackLayout Grid.Row="0">
                <Button Text="btn1"/>
                <Button Text="btn2"/>
                <Button Text="btn3"/>
            <ScrollView Grid.Row="1">

    Best Regards,

    Alec Liu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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 comments No comments

0 additional answers

Sort by: Most helpful