- Home
- Forum
- Xamarin.Forms
- SfNavigationDrawer and SfCalendar problem
SfNavigationDrawer and SfCalendar problem
Hi,
i wanna create a simple page with a full page calendar and a navigation drawer on the right in a UWP
i have this simple page
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xForms="clr-namespace:Syncfusion.SfCalendar.XForms;assembly=Syncfusion.SfCalendar.XForms"
xmlns:xForms1="clr-namespace:Syncfusion.SfNavigationDrawer.XForms;assembly=Syncfusion.SfNavigationDrawer.XForms"
x:Class="View.PageCalendar">
<Grid>
<xForms:SfCalendar InlineToggled="Calendar_OnInlineToggled" x:Name="calendar" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" ShowInlineEvents="true"/>
<xForms1:SfNavigationDrawer x:Name="navigationDrawer" Position="Right" Transition="SlideOnTop" DrawerWidth="300">
<xForms1:SfNavigationDrawer.DrawerContentView>
<ListView x:Name="listView" BackgroundColor="White">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell >
<StackLayout
Orientation="Horizontal" Margin="10">
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xForms="clr-namespace:Syncfusion.SfCalendar.XForms;assembly=Syncfusion.SfCalendar.XForms"
xmlns:xForms1="clr-namespace:Syncfusion.SfNavigationDrawer.XForms;assembly=Syncfusion.SfNavigationDrawer.XForms"
x:Class="View.PageCalendar">
<Grid>
<xForms:SfCalendar InlineToggled="Calendar_OnInlineToggled" x:Name="calendar" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" ShowInlineEvents="true"/>
<xForms1:SfNavigationDrawer x:Name="navigationDrawer" Position="Right" Transition="SlideOnTop" DrawerWidth="300">
<xForms1:SfNavigationDrawer.DrawerContentView>
<ListView x:Name="listView" BackgroundColor="White">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell >
<StackLayout
Orientation="Horizontal" Margin="10">
<Label Text="{Binding}" VerticalOptions="Center" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</xForms1:SfNavigationDrawer.DrawerContentView>
</xForms1:SfNavigationDrawer>
</Grid>
</ContentPage>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</xForms1:SfNavigationDrawer.DrawerContentView>
</xForms1:SfNavigationDrawer>
</Grid>
</ContentPage>
but whit this i cannot interact with calendar, no selection, change date ecc, if i remove the navigationdrawer it's all ok.
i have tried to move the navigationdrawer outside the grid but i cannot find how use it for solve the problem.
Thanks in advance
Alex
SIGN IN To post a reply.
3 Replies
PK
Pavendhan Kumar
Syncfusion Team
January 30, 2017 12:09 PM UTC
Hi Alesssio,
Thank you for contacting Syncfusion software.
Query: Unable to interact with Calendar while it inside NavigationDrawer
From your give code snippet we have inferred that you are trying to add Calendar and NavigatioDrawer simultaneously in a grid layout. Instead of that add navigation drawer a child to grid and add calendar inside content view of NavigationDrawer. We have prepared a sample for your convenience please download the same from the below available link.
Please let us know if you have any concenrs
Regards,
Pavendhan K.
Pavendhan K.
AI
Alessio Iafrate
January 30, 2017 01:29 PM UTC
Thanks, it works very well :D
VA
Vanaja Annasamy
Syncfusion Team
January 31, 2017 10:11 AM UTC
Hi Alessio,
Thank you for your update. Please let us know if you have any other queries.
Regards,
Vanaja R.A.
Thank you for your update. Please let us know if you have any other queries.
Regards,
Vanaja R.A.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
AI Alessio Iafrate
- Jan 28, 2017 02:35 PM UTC
- Jan 31, 2017 10:11 AM UTC