Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gallery][All Platform]DataGrid - When opening the calendar for the 'Date Planted' section, it displays the default current year as 1924. #16064

Open
sakshi173 opened this issue Mar 28, 2024 · 2 comments
Labels
area/canary 🐤 Categorizes an issue or PR as relevant to canary testing area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/all Categorizes an issue or PR as relevant to the all platforms project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries

Comments

@sakshi173
Copy link

Current behavior

Uno.Gallery.-.Google.Chrome.2024-03-28.15-28-41.mp4

Datgrid calendar issue

Expected behavior

Calendar should display current year '2024'

How to reproduce it (as minimally and precisely as possible)

  1. Launch the Uno.Gallery app for 4X or 5X version for Android.
  2. Click on “DataGrid” from the "Community Toolkit" list.
  3. Go to 'Date Planted' section
  4. Click on any existing date.
  5. Calendar should open.
  6. In the open calendar click on the top display of the monthyear section(March2024).
  7. Notice that it displays the default current year as 1924.

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

@sakshi173 sakshi173 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification platform/all Categorizes an issue or PR as relevant to the all platforms area/canary 🐤 Categorizes an issue or PR as relevant to canary testing difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Mar 28, 2024
@Youssef1313 Youssef1313 self-assigned this Mar 28, 2024
@Youssef1313
Copy link
Member

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.

@Youssef1313
Copy link
Member

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)

😕

@Youssef1313 Youssef1313 removed their assignment Apr 4, 2024
@MartinZikmund MartinZikmund added project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/canary 🐤 Categorizes an issue or PR as relevant to canary testing area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/all Categorizes an issue or PR as relevant to the all platforms project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries
Projects
None yet
Development

No branches or pull requests

3 participants