- Home
- Forum
- Xamarin.Forms
- DrawerContentView and ScrollView
DrawerContentView and ScrollView
Hello,
I would like to create simple Nav Drawer with Grid inside, showing first Logo, Name, then the options.
I would like to scroll ALL, Logo and the options, as in Landscape view there isn't much space (I have been using ListView scroll to avoid that problem).
I set the Header height to 0 and used the following code. ScrollView will not work with Grid or StackLayout or Frame combinations. I have tried requesting the Heights / Setting vertical options etc. I still cannot get the ScrollView to work.
Is there a way to get the ScrollView to work inside navigationdrawer:SfNavigationDrawer.DrawerContentView ?
...
</navigationdrawer:SfNavigationDrawer.ContentView>
<navigationdrawer:SfNavigationDrawer.DrawerContentView >
<navigationdrawer:SfNavigationDrawer.DrawerContentView >
<ScrollView>
<StackLayout BackgroundColor="Yellow" >
<StackLayout BackgroundColor="Yellow" >
<syncEffectsView:SfEffectsView TouchDownEffects="Ripple" CornerRadius="5"
VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand">
<Button Text="Remove Ads"
HorizontalOptions="Center" VerticalOptions="Center" />
VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand">
<Button Text="Remove Ads"
HorizontalOptions="Center" VerticalOptions="Center" />
<Image Source="Question.png" Scale=" 0.5" HorizontalOptions="Center" VerticalOptions="Center"/>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
<Image Source="Question.png" Scale=" 0.5" HorizontalOptions="Center" VerticalOptions="Center"/>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
<Image Source="Question.png" Scale=" 0.5" HorizontalOptions="Center" VerticalOptions="Center"/>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
</StackLayout>
</ScrollView>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
<Image Source="Question.png" Scale=" 0.5" HorizontalOptions="Center" VerticalOptions="Center"/>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
<Image Source="Question.png" Scale=" 0.5" HorizontalOptions="Center" VerticalOptions="Center"/>
<Label Text="Question" Style="{x:StaticResource MenuText}" FontSize="Medium"/>
</StackLayout>
</ScrollView>
</navigationdrawer:SfNavigationDrawer.DrawerContentView>
</navigationdrawer:SfNavigationDrawer>
</ContentPage>
</navigationdrawer:SfNavigationDrawer>
</ContentPage>
SIGN IN To post a reply.
1 Reply
1 reply marked as answer
SP
Sakthivel Palaniyappan
Syncfusion Team
September 7, 2020 11:05 AM UTC
Hi Michal,
Greetings from Syncfusion.
We have analyzed your query and checked the reported issue with Scrollview inside Navigation DrawerContentView, its working fine at our end. We have created sample as per your provided information please find the sample from below.
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavDrawerSample-1549463353.zip
Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. This will be helpful for us to investigate further and provide you a better solution at the earliest.
Regards,
Sakthivel P.
Greetings from Syncfusion.
We have analyzed your query and checked the reported issue with Scrollview inside Navigation DrawerContentView, its working fine at our end. We have created sample as per your provided information please find the sample from below.
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavDrawerSample-1549463353.zip
Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. This will be helpful for us to investigate further and provide you a better solution at the earliest.
Regards,
Sakthivel P.
Marked as answer
SIGN IN To post a reply.