-
Notifications
You must be signed in to change notification settings - Fork 760
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
fix(template): Move app.xaml.cs to shared "AppBase" #11085
Conversation
The build 67530 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is heading down the right path as far as having an application in the multi-targeted library to make it easier to manage. Since it's WinUI that's the real issue here I think we probably should do a couple of things.
- Name the App class in the multi-targeted project simply App
- We shouldn't need anything on the platform heads for the Uno side. But for WinUI we can simply provide an empty
WinApp.xaml
that inherits from our App class in the multi-targeted project. That way we have something in the WinUI project to provide an ApplicationDefinition for. We could code gen it, but really it will be an empty file that is easier to just place in the template for now.
@dansiegel Uno also needs the |
The build 67647 found UI Test snapshots differences: Details
|
The build 67664 found UI Test snapshots differences: Details
|
83d7d51
to
16134f7
Compare
The build 67719 found UI Test snapshots differences: Details
|
The build 67745 found UI Test snapshots differences: Details
|
df46621
to
a6242c4
Compare
The build 67809 found UI Test snapshots differences: Details
|
doc/articles/guides/silverlight-migration/03-review-app-startup.md
Outdated
Show resolved
Hide resolved
src/SolutionTemplate/UnoSolutionTemplate.WinUI.netcore/Base/AppHead.xaml.cs
Outdated
Show resolved
Hide resolved
src/SolutionTemplate/UnoSolutionTemplate.WinUI.netcore/Views/App.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Agnès ZITTE <[email protected]>
The build 67877 found UI Test snapshots differences: Details
|
@Mergifyio backport release/stable/4.7 |
✅ Backports have been created
|
…4.7/pr-11085 fix(template): Move app.xaml.cs to shared "AppBase" (backport #11085)
GitHub Issue (If applicable): #11082, closes #11122
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Introduces an AppBase.cs class to provide access to the main App instance from the class library's code.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):