WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Replace MainWindow with plain Window in sample projects

Open AndrewKeepCoding opened this issue 6 months ago • 0 comments

Description

This PR updates WindowHelper.CreateWindow() to return a plain Window instead of MainWindow, which was tightly coupled to several static members.

Motivation and Context

Fixes #2062.

How Has This Been Tested?

Manually tested.

Screenshots (if appropriate):

image

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

AndrewKeepCoding avatar Oct 03 '25 08:10 AndrewKeepCoding