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

The Documentation for DesktopWindowXamlSource.Initialize is Incorrect #9162

Open
DarranRowe opened this issue Dec 13, 2023 · 0 comments
Open
Labels
documentation An issue with existing documentation or a request for documenation of a new topic

Comments

@DarranRowe
Copy link

Describe the bug

The documentation for DesktopWindowXamlSource.Initialize states that the WindowId of the HWND of the parent window can be retrieved through Microsoft.UI.Input.InputNonClientSource.GetForWindowId.
This is incorrect because it returns an InputNonClientSource instance and actually takes a WindowId as a parameter.

Steps to reproduce the bug

  1. Browse to the DesktopWindowXamlSource.Initialize documentation.
  2. Observe the incorrect information for the parentWindowId parameter.

Expected behavior

Possibly refer to GetWindowIdFromWindow (C++) and/or Win32Interop.GetWindowIdFromWindow (C#). These are the means of converting a HWND to a WindowId.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000

Windows version

No response

Additional context

No response

@DarranRowe DarranRowe added the bug Something isn't working label Dec 13, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 13, 2023
@bpulliam bpulliam added documentation An issue with existing documentation or a request for documenation of a new topic and removed bug Something isn't working needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation An issue with existing documentation or a request for documenation of a new topic
Projects
None yet
Development

No branches or pull requests

2 participants