Skip to content

Confirm whether Duration.TimeSpan should be a field or property. #13096

Closed

Description

@Youssef1313

We should make sure to match Windows (both UWP and WinUI).

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    project/animations 🎡
    on Aug 3, 2023
  2. added
    difficulty/starter 🚀
    and removed
    difficulty/tbd
    triage/untriaged
    on Sep 20, 2023
  3. ramezgerges commented on Dec 25, 2023

    @ramezgerges
    Contributor

    Duration.TimeSpan is indeed a property on WinUI. According to #13712 (comment), that might not be the case for UWP.

  4. added
    kind/breaking-change 💥
    on May 10, 2024
  5. github-actions commented on Aug 10, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  6. added
    stale
    on Aug 10, 2025
  7. removed
    stale
    on Aug 11, 2025
  8. MartinZikmund commented on Aug 11, 2025

    @MartinZikmund
    Member

    The discrepancy is still present

  9. MartinZikmund commented on Nov 8, 2026

    @MartinZikmund
    Member

    This is settled: in WinUI's C# projection, Duration.TimeSpan is a get-only property, and Uno now matches it. The change from the old public field landed in #23619, and you can see the result here:

    public TimeSpan TimeSpan { get; }
    . It ships in 7.0, and the migration guide covers it. If you still see a difference from WinUI, please open a new issue.

    This was checked as part of an AI-assisted backlog review by reading the code, not by running it. If it looks wrong, please reply and we will take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter 🚀kind/breaking-change 💥kind/bugno-reproproject/animations 🎡

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions