Prism - Using Composite Commands

  Рет қаралды 14,455

Brian Lagunas

Brian Lagunas

Күн бұрын

Пікірлер: 24
@taab84
@taab84 5 жыл бұрын
Prism changed the way i design WPF applications, thanks for this amazing Library
@BrianLagunas
@BrianLagunas 5 жыл бұрын
Thank you for such kind words. I'm so happy Prism has provided value to you and your applications
6 жыл бұрын
awesome, I can't live without prism :) thank you Sir Brian
@BrianLagunas
@BrianLagunas 6 жыл бұрын
You're welcome
@LeonardHarrisLH
@LeonardHarrisLH 9 ай бұрын
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.
@sikhas3789
@sikhas3789 3 жыл бұрын
How do we get around Composite command Can execute? I want to have an OR condition on Can Execute of all registered commands
@BrianLagunas
@BrianLagunas 3 жыл бұрын
Don't provide a CanExecute. Instead add the logic to check to invoke your command logic in the Execute method.
@sikhas3789
@sikhas3789 3 жыл бұрын
@@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
@rahulmathew8713
@rahulmathew8713 4 жыл бұрын
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
@BrianLagunas
@BrianLagunas 4 жыл бұрын
If you're using the latest version of Prism, you can have your VM implement IDestructible and do this in the destroy method.
@张校源
@张校源 4 жыл бұрын
Do you have soure code ?
@BrianLagunas
@BrianLagunas 4 жыл бұрын
Here is a sample: github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/12-UsingCompositeCommands
@zigggy5224
@zigggy5224 4 жыл бұрын
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
@BrianLagunas 4 жыл бұрын
You are correct. Only place something in the shared project if all modules will use it. Otherwise, put it where it is used.
@Hilarychizi
@Hilarychizi 4 жыл бұрын
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.
@BrianLagunas
@BrianLagunas 4 жыл бұрын
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.
@Hilarychizi
@Hilarychizi 4 жыл бұрын
@@BrianLagunas, do you have a link that will help me? The video on IEventAggregator didn't show the code code for initializing the modules.
@CatTrainerYT
@CatTrainerYT 5 жыл бұрын
Can I get source code of all your demos?
@BrianLagunas
@BrianLagunas 5 жыл бұрын
You can find the code for this on the Prism Library GitHub repo under the Wpf Samples
@hamarasansarharsh
@hamarasansarharsh 6 жыл бұрын
can you please make videos for important feature that can achieve using prism in wpf
@BrianLagunas
@BrianLagunas 6 жыл бұрын
I'm sorry, could you please provide more detail for your request. What "important feature" are you referring to?
@hamarasansarharsh
@hamarasansarharsh 6 жыл бұрын
@@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.
@BrianLagunas
@BrianLagunas 6 жыл бұрын
@@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 :)
@hamarasansarharsh
@hamarasansarharsh 6 жыл бұрын
@@BrianLagunas thanks waiting
Prism - Using the Event Aggregator
9:14
Brian Lagunas
Рет қаралды 32 М.
Prism - Using Delegate Commands
11:31
Brian Lagunas
Рет қаралды 37 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
I built Minecraft in Desmos (part 1)
3:13
The Unqualified Tutor
Рет қаралды 86 М.
Adding a Prism Login Screen
8:55
Brian Lagunas
Рет қаралды 10 М.
💀 R.I.P. YouTube Tutorials: Gemini 2.0 AI is the NEW Teacher
10:00
Teacher's Tech
Рет қаралды 113 М.
Prism for Xamarin.Forms - Navigation Basics
15:09
Brian Lagunas
Рет қаралды 22 М.
Prism - Using the ViewModelLocator
8:40
Brian Lagunas
Рет қаралды 21 М.
How to Become a Highly Employable C# Developer in 2025
20:10
Gavin Lon
Рет қаралды 4,1 М.
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 317 М.
Prism for Xamarin.Forms - Create your first application
11:49
Brian Lagunas
Рет қаралды 24 М.
Reinforcement Learning - My Algorithm vs State of the Art
19:32
Pezzza's Work
Рет қаралды 151 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН