Skip to content

Remove Windows.UI.Input.* from the public API #18875

Closed as not planned
Closed as not planned

Description

@ramezgerges

Current behavior

They should only be present on the UWP branch. Either make them internal or completely remove them

Expected behavior

No response

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

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    kind/breaking-change 💥
    on Nov 21, 2024
  2. added
    difficulty/medium 🤔
    difficulty/starter 🚀
    and removed
    triage/untriaged
    difficulty/tbd
    difficulty/medium 🤔
    on Sep 3, 2025
  3. github-actions commented on May 8, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  4. added
    stale
    on May 8, 2026
  5. removed
    stale
    on May 9, 2026
  6. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  7. added
    stale
    on Oct 18, 2026
  8. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    This issue was closed because it had no activity for 10 days after being marked as stale. If you believe this is still relevant, feel free to reopen it or open a new issue with updated context.

  9. removed
    stale
    on Nov 7, 2026
  10. MartinZikmund commented on Nov 18, 2026

    @MartinZikmund
    Member

    Closing this as invalid: the Windows.UI.Input.* types are public in WinUI 3 too.

    WinUI 3 apps target net*-windows10.0.x, which references the Windows SDK projection (Microsoft.Windows.SDK.NET.dll), and every Windows.UI.Input.* type is public there. I compared the type metadata:

    • Uno (Uno.WinRT.dll, 7.1.0-dev.161) has 173 public Windows.UI.Input.* types.
    • Windows SDK projection 10.0.19041 has exactly the same 173 types: Uno has nothing extra and is missing nothing.
    • Windows SDK projection 10.0.26100 adds 31 more (Preview.Text.*, PhysicalGestureRecognizer, Touchpad*). They aren't in Uno because the sync generator references the 19041 projection.

    Several of these types also work in WinUI 3 desktop apps, for example Windows.UI.Input.Preview.Injection.InputInjector, which our own runtime tests use when they run against WinUI. Making them internal or removing them would break source compatibility with code written for WinUI.

    A separate, real problem turned up during the investigation: the Uno.UI/UI/Input/WinRT/*.cs files are also compiled into Uno.WinRT under Windows.UI.Input. As a result, Windows.UI.Input.GestureRecognizer.ProcessDown/Move/UpEvent take Microsoft.UI.Input.PointerPoint instead of Windows.UI.Input.PointerPoint, and a few Uno-only members appear in that namespace. That will be tracked in a separate issue.

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

Metadata

Metadata

Assignees

Labels

difficulty/starter 🚀kind/breaking-change 💥kind/bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions