Hi Brian! We are using Prism MAUI, what if you need to refresh a page with tab views and its structured in a way that each tab has a command to be executed that refreshes its own content that the parent page can invoke, and each command may require a different parameter provided, can the Composite Command handle this type of situation? I don't currently see a way to do so but then maybe I am not using it as intended.
Hi Brian, You said to unregister the compositecommand after use. But where should we write that code. In your example you didnt include that. Please advise
Is there a reason you created the ApplicationCommands class in a separate library? It seems like this could be just placed in the ModuleA project since this is the only place where this particular command will be used. Unless, the plan is to put all Composite Commands for all Modules in this one class?
@@BrianLagunas Thank you. So the button stays enabled always rt? I am using it to Save all the changes throughout the application. It would have been so much more userfriendly if we can disable the button when there is nothing to Save, like the individual Save buttons
I just started with Prism and also more like a beginner in c#. My major challenge is how to connect different views to the shell when you have different modules. Also, trying to follow up on this, it was throwing up error.
You don't do anything special to navigate many views that belong to different modules into the same region. It just works. If you are getting errors, then you are doing something wrong.
@@BrianLagunas first of all thanks for reply. i mean what we can do extra in prism. you uploaded only 6 video. is this enough features in prism or more are there? I like your video that's why i want to go more deaper in prism.
@@hamarasansarharsh Actually, I have 10 videos so far, and these are just the first of many. There are many many many more features in Prism that make building applications more productive, easier to maintain, easier to test, and easier to extend. Stay tuned for more videos :)
Prism changed the way i design WPF applications, thanks for this amazing Library
Thank you for such kind words. I'm so happy Prism has provided value to you and your applications
awesome, I can't live without prism :) thank you Sir Brian
You're welcome
Hi Brian! We are using Prism MAUI, what if you need to refresh a page with tab views and its structured in a way that each tab has a command to be executed that refreshes its own content that the parent page can invoke, and each command may require a different parameter provided, can the Composite Command handle this type of situation? I don't currently see a way to do so but then maybe I am not using it as intended.
Hi Brian, You said to unregister the compositecommand after use. But where should we write that code. In your example you didnt include that.
Please advise
If you're using the latest version of Prism, you can have your VM implement IDestructible and do this in the destroy method.
Is there a reason you created the ApplicationCommands class in a separate library? It seems like this could be just placed in the ModuleA project since this is the only place where this particular command will be used. Unless, the plan is to put all Composite Commands for all Modules in this one class?
You are correct. Only place something in the shared project if all modules will use it. Otherwise, put it where it is used.
Do you have soure code ?
Here is a sample: github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/12-UsingCompositeCommands
How do we get around Composite command Can execute? I want to have an OR condition on Can Execute of all registered commands
Don't provide a CanExecute. Instead add the logic to check to invoke your command logic in the Execute method.
@@BrianLagunas Thank you. So the button stays enabled always rt? I am using it to Save all the changes throughout the application. It would have been so much more userfriendly if we can disable the button when there is nothing to Save, like the individual Save buttons
I just started with Prism and also more like a beginner in c#.
My major challenge is how to connect different views to the shell when you have different modules.
Also, trying to follow up on this, it was throwing up error.
You don't do anything special to navigate many views that belong to different modules into the same region. It just works. If you are getting errors, then you are doing something wrong.
@@BrianLagunas, do you have a link that will help me? The video on IEventAggregator didn't show the code code for initializing the modules.
can you please make videos for important feature that can achieve using prism in wpf
I'm sorry, could you please provide more detail for your request. What "important feature" are you referring to?
@@BrianLagunas first of all thanks for reply.
i mean what we can do extra in prism. you uploaded only 6 video. is this enough features in prism or more are there?
I like your video that's why i want to go more deaper in prism.
@@hamarasansarharsh Actually, I have 10 videos so far, and these are just the first of many. There are many many many more features in Prism that make building applications more productive, easier to maintain, easier to test, and easier to extend. Stay tuned for more videos :)
@@BrianLagunas thanks waiting
Can I get source code of all your demos?
You can find the code for this on the Prism Library GitHub repo under the Wpf Samples