Open sakshi173 opened 7 months ago
Seeing some exceptions in browser logs:
Failed to apply binding to property [DependencyPropertyDetails(Date)] on [Microsoft.UI.Xaml.Controls.CalendarDatePicker] (ConvertFromException, DateTimeOffsetConverter, System.DateTime)
System.NotSupportedException: ConvertFromException, DateTimeOffsetConverter, System.DateTime
at System.ComponentModel.DateTimeOffsetConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Uno.UI.DataBinding.BindingPropertyHelper.ConvertUsingTypeDescriptor(Type type, Object value)
at Uno.UI.DataBinding.BindingPropertyHelper.Convert(Type propertyType, Object value)
at Microsoft.UI.Xaml.Data.BindingExpression.SetTargetValueSafe(Object v, Boolean useTargetNullValue)
Not sure if they are related.
There is also (this one is likely the root cause):
Failed to raise 'PointerReleasedEvent': System.InvalidOperationException: Layout cycle detected.
at Microsoft.UI.Xaml.UIElement.UpdateLayout()
at Microsoft.UI.Xaml.Controls.CalendarView.OnDisplayModeChanged(CalendarViewDisplayMode oldDisplayMode, CalendarViewDisplayMode newDisplayMode)
at Microsoft.UI.Xaml.DependencyObjectStore.InnerSetValue(DependencyProperty property, Object value, DependencyPropertyValuePrecedences precedence, DependencyPropertyDetails propertyDetails, Boolean isPersistentResourceBinding)
at Microsoft.UI.Xaml.Controls.CalendarView.set_DisplayMode(CalendarViewDisplayMode value)
at Microsoft.UI.Xaml.Controls.CalendarView.OnHeaderButtonClicked()
at Microsoft.UI.Xaml.Controls.CalendarView.<AttachButtonClickedEvents>b__664_0(Object pSender, RoutedEventArgs pArgs)
at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__367_10(Object sender, PointerRoutedEventArgs args)
at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx)
😕
Current behavior
https://github.com/unoplatform/uno/assets/74563602/9ecc575e-0374-49aa-a524-8ce82dd23c3a
Expected behavior
Calendar should display current year '2024'
How to reproduce it (as minimally and precisely as possible)
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
WebAssembly, Android, iOS, Skia (GTK on Linux/macOS/Windows)
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response