-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Pri2design/techdoc-enhancementfeedback is about suggested additions/improvements to the article, but customer is not blockedfeedback is about suggested additions/improvements to the article, but customer is not blockeduwp/prod
Description
In the Make code portable across windowing hosts table, the guidance for CoreWindow.GetForCurrentThread().Bounds
and Window.Current.Bounds
is to use uiElement.XamlRoot.Size
. That's fine if you're just trying to get the size of the window; however, Bounds
also contained the X,Y position on screen.
More guidance should be provided here on how to retrieve the coordinates properly when hosted in scenarios with multiple window potential. i.e. translating this scenario
FYI @marb2000
Linkback: CommunityToolkit/WindowsCommunityToolkit#3650
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 44b63acc-1530-9f33-1004-35577ba242be
- Version Independent ID: 961a646b-9e65-f8c2-c318-94c33bfbf3dd
- Content: Show multiple views for an app - Windows apps
- Content Source: hub/apps/design/layout/show-multiple-views.md
- Product: uwp
- Technology: design
- GitHub Login: @jwmsft
- Microsoft Alias: jimwalk
Metadata
Metadata
Assignees
Labels
Pri2design/techdoc-enhancementfeedback is about suggested additions/improvements to the article, but customer is not blockedfeedback is about suggested additions/improvements to the article, but customer is not blockeduwp/prod
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Merge pull request #3319 from MicrosoftDocs/main638133089748714376syn…