Hi guys,
i have to build two calendar on the same view (per month and per week) using page control.
but the problem is when i try to navigate to the next month on the calendar per month view , it sometimes push the page control navigation to the week view and try to reach the week calendar view navigation (there are separated) and give me an error.
https://youtu.be/258wsJbFPqY, when i quotes the week view the month calendar work well https://youtu.be/JxPICPg_Uqg
this is my code for the page who display both week and month view using page control.
<PageControl ux:Name="MontsDate">
<Page ux:Name="MO">
<CalendarMonth ux:Name="monthDate" router="router"/>
<ActivatingAnimation>
<Change MoisRect.Opacity="1" Easing="Linear"/>
</ActivatingAnimation>
</Page>
<Page ux:Name="Se">
<CalendarWeek ux:Name="weekDate" router="router"/>
<ActivatingAnimation>
<Change SemaineRect.Opacity="1" Easing="Linear"/>
</ActivatingAnimation>
</Page>
</PageControl>
this is the the month view
<DockPanel ux:Class="CalendarMonth">
<Router ux:Dependency="router" />
<JavaScript>
var d = new Date()
router.gotoRelative(calNav, "month", { month: d.getMonth(), year: d.getFullYear() } )
</JavaScript>
<Navigator ux:Name="calNav">
<Mois ux:Template="month" router="router" SwipeBack="None"/>
</Navigator>
</DockPanel>
this is the week view.
<DockPanel ux:Class="CalendarWeek">
<Router ux:Dependency="router" />
<JavaScript>
var d = new Date()
router.gotoRelative(WeekDispo, "semaine", {week: d})
</JavaScript>
<Navigator ux:Name="WeekDispo">
<Semaine ux:Template="semaine" router="router" SwipeBack="None"/>
</Navigator>
</DockPanel>