Hi,
during some more testing, sometimes an exception is thrown when switching between the viewmodes.
It occurs when changing from day- or weekview to monthview.
FSM.UWP.exe!FSM.UWP.App.InitializeComponent.AnonymousMethod__6_1(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e) Line 53
Object reference not set to an instance of an object.
at Syncfusion.UI.Xaml.Schedule.SfSchedule.OnWeekNumberStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Xamarin.Forms.Platform.UWP.TaskExtensions.<>c.<WatchForError>b__2_1(Object e)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()
A week ago I enabled
<xForms:SfSchedule.MonthViewSettings>
<xForms:MonthViewSettings
ShowWeekNumber="true">
</xForms:MonthViewSettings>
</xForms:SfSchedule.MonthViewSettings>
Before that I never had an exception switching the viewmodes....so it may be related, looking at the exception info.
Finally I found a way to reproduce the error:
- Start in viewmode "Month"
- Click on right arrow to go to the next month
- Switch to viewmode "Week"
- Switch back to viewmode "Month" ---> Exception
Regards,
Siggi