Replies: 3 comments 1 reply
-
You can implement regions and navigating to dependent views any way you want. This is a personal choice based on your architecture and app requirements. |
Beta Was this translation helpful? Give feedback.
-
Ok but I mean, would I have the exact same app-functionnalities/features using Navigation (vs RegionBehavior) and Pub/Sub (vs IDataContext)? It is not clear for me after watching "Loading Dependent Views" what are the advantages of using RegionBehavior+IDataContext: Better maintainability/modularity/readability/extensibility/overall architecture design/etc. ? and/or added in-app features/functionnalities/capabilities? I will go for the approach that "check" all of the above properties and if equivalent, I'd probably go with Navig+PubSub since I find it more intuitive so are they equivalent? Which would you chose for a large app with lots of tabs/dialogs and a ribbons? Thank you |
Beta Was this translation helpful? Give feedback.
-
Sorry I am not being clear (I'll refocus on my main question): I just wanted to know before trying anything if I can totally reproduce the exact same app functionnalities in your course "Loading Dependent Views" using "Navig+PubSub" instead of "RegionBehavior/TabAttribute+IDataContext", which would make the two approaches totally interchangeable/equivalent, and if not why? Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@brianlagunas
Hi I'm relatively new to Prism, I looked at your "Loading dependent views" course on pluralsight, and though I think I understand overall the techniques proposed, I don't understand why Prism's Navigation API + Pub/Sub can't do something similar
I mean:
1- Adding/Removing Views: Can't I just when focussing/clicking ViewA (in the ContentControl region) navigate automatically in the RibbonRegion to ViewA's related TabItems, while hiding/closing all unrelated/irrelevant tabs?
2- Region's content: Would the most flexible (but not necessarily practical (ie overkill)) way to structure a RibbonControl be something like:
Or (I guess) not all container should be regions, except on rare cases?
3- Sharing DataContext: I thought Pub/Sub was a good way to share indirectly different Views' datacontexts, what are ISupportDataContext main differences/advantages-disavantages?
Thank you, Im having a hard time understanding when should I use RegionBehavior/Navigation, and ISupportDataContext/PubSub
Beta Was this translation helpful? Give feedback.
All reactions