[Contributing] I want to make the What's New notification openable from the Settings page, but I need some guidance #407
Replies: 2 comments 1 reply
-
@veler Could I bother you for some input on this? |
Beta Was this translation helpful? Give feedback.
-
Hello @stamminator , Sorry for the late answer. :) I completely missed your initial message. There's something I don't think you mentioned in your initial message: what the UI should be? From what I understand from your explanation, it sounds like you'd like to show the notification itself, instead of a modal dialog (for example), which is fine I think. :) To do this, I can think of a 5th approach which:
The idea is to make I'd like to invite you to look at the class This class is a "message" that we use for communicating between the View Model and a View. A message can also be used for communicating between View Models ;-) . Let me know if you have any question. :) |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is my first time looking at UWP or even XAML code of any kind (my background is ASP.NET & JS), so any and all critiques are welcome. I'm here to learn and hopefully contribute.
I'd love to be able to open the post-update What's New notification on demand from the settings page so you can view it again after you close it. Currently, this functionality lives in
MainPageViewModel
, and the strings passed intoNotificationService
live inMainPage.resw
. Here are the approaches I've thought of so far:Settings.resw
MainPage.resw
strings from withinSettingsToolViewModel
Common.resw
Common.resw
seem to indicate that this kind of shared functionality between two pages isn't its intended use case, but is rather for lower level component reusage. Maybe I'm wrong though.These first three approaches would all share the need to duplicate the following bit of code (more or less) between
MainPageViewModel
andSettingsToolViewModel
, but maybe it's so minimal that it's not a big deal. Thoughts?And for the last approach...
MainPageViewModel
andSettingsToolViewModel
and consumed..resw
file and all its localizations just for this service? Seems a little bloated for just one method that's only used in two places.NotificationService
, and I frankly have no clue how the dependency injection for these services works.Which approach should I use? Is there something I'm not considering? Any advice is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions