-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Use App.xaml in samples #320
Conversation
I started with this commit, but I'm having trouble reducing noise in @TysonMN any ideas? |
I don't have that problem on your branch. After stashing or committing all changes, try closing Visual Studio and running |
I often do, and unfortunately it doesn't help this time. Check out the latest commit, which fails for me even after |
I am now experiencing that problem. Not sure what changed. Investigating now. |
|
I pushed commit a51c734 to your branch. It compiles for me now. It seems like |
I see. Do you want to report it, and then we can link to the issue in a comment in |
I don't understand. This code compiles. |
Oh, I wasn't calling |
Wait, why do you have My guess is that you added |
Yes, you are right. I assumed all code-behind partial classes needed |
I just tested with your I suggest that we find some code that causes |
So, pretty much like a51c734? |
Yea, that seems to work. |
Great. I'll put that and a comment in all the samples, then. BTW, IIRC |
Ok, I have experimented a bit more now. There are several ways to go about this. I found a fairly simple way that works with See the latest commit above this comment (b9693c2). In short:
In v4, we might consider renaming There are alternatives to the
Thoughts? |
@TysonMN To be clear, I'm waiting for feedback from you before continuing. In particular, I'd like to know if the method from the latest commit works for your use-cases, and if you can see any obvious negatives or potential improvements. |
Yes, sorry for the delay.
I wrongly assumed that I have been thinking a lot about this and going back and forth on what I think is best. Here is the comparison as I see it.
|
Generally I don't agree with this. I do agree somewhat with the "feeling", and that the Of course, the above is based on assumptions about how the
I think the second one here is a fairly major disadvantage, since according to our observations,
We agree on this point. I take it that you find it okay to make the samples use this pattern, then? We could of course also have a sample that just demonstrates the explicit entry point variant.
Thanks for the detailed explanation. I can relate to the desire for removing all of the "magic". |
Indeed. One sample using the custom entry point would be nice but not necessary. |
I have yet to update all samples, but I have made some important changes I'd like input on:
|
I will look closely tomorrow. I still like the name |
Same here, I just wanted to have that name be "config-less" and rename the existing one to |
Sure. I don't mind breaking changes when, as you said, the fix is straightforward. I have reviewed now. This looks good. I especially like the comments in the project file. That is a nice touch. |
It is my understanding then you can get behind all the current PR changes to |
I still prefer the name I am happy with all the other changes. |
I agree. Perhaps I'll just revert the rename and remove the config-less variant for now, and we can bring it back in v4 with a breaking change. The required change for users would be trivial. |
This is now ready for review. I have not squashed the commits; I plan to do that in GH when merging. |
Forgot to mention that I have tested all the samples. |
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.
Very good! I left some minor feedback.
Co-authored-by: Tyson Williams <34664007+TysonMN@users.noreply.github.com>
I think this is ready to be merged |
Great, thanks! |
Use App.xaml as the entry point in all samples
Closes #319