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

Unified UWP/WinUI 3 Sample App #444

Closed
wants to merge 6 commits into from

Conversation

hawkerm
Copy link
Sponsor Contributor

@hawkerm hawkerm commented Dec 3, 2022

Description

This PR consolidates the code for the UWP and WinUI 3 sample app heads in order to make them both run from a single source XAML/cs file. (It also consolidates the icon/app assets between the two using the shared project.)

This will reduce overhead and maintenance costs and make it easier to add features moving forward.

Some features like #197 and #200 were only added to the UWP head and missed from the WinUI 3 counterpart for instance.

No major functional changes have been made to the app or how it works; however, app services (from UWP) and the conditionalweaktable (from WinUI 3) are now in both apps; though app services is not enabled for WinUI 3.

Additional context

We use the existing shared project to do this as well as an msbuild task which rewrites the namespaces in the XAML file for UWP before the UWP project builds (these generated files are git ignored).

I did use a git move commit in order to preserve history, the overall GitHub diff isn't doing a good job of showing that. Reviewing some of the later commits on their own provides a better picture.

Related to issues #442 #162

…mple App

Reduce duplication of image files and save space in repo (no functional change)
… files for main UserControl.

Adds a Task to UWP project to rename namespaces and copy file over before build (added to gitignore)
Adds Dependency Injection to WinUI 3 head to match UWP
Centralizes AppService setup in shared project
Fixes 'Pause shader' typo
Brings missing error and vertical sync options to WinUI 3 sample app from Sergio0694#197 and Sergio0694#200.
@Sergio0694
Copy link
Owner

Closing this, since I've now removed UWP support from main, and it'll only remain in the 2.2 branch for maintenance (since we use that in the Microsoft Store). Along with that, I've also removed the UWP sample app from main, so this PR doesn't apply anymore. Thank you though, and sorry for the delay! 😅

@Sergio0694 Sergio0694 closed this Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants