Implementing the ICommand interface

preview_player
Показать описание
Implement the ICommand interface to replace event handlers on your XAML-based applications

Рекомендации по теме
Комментарии
Автор

This video FINALLY got me started in understanding MVVM! Thank you so much for the succinct explanations!

michaelsibille
Автор

"ctor" code snippet for the default constructor!
Genius!

LucaLindholm
Автор

You actually made me understand ICommand interface finally, best video I ever watched around this topic.

AliJPC
Автор

so relaxing when learn stuff like that all one by one instead of jump right into MVVM

anaibrahim
Автор

A Class, property, method and a binding. What a lot of stuff for one ease method call!

jannickbreunis
Автор

10:19 - is there a way to know the name of the button that was clicked in SimpleMethod()?
can the name of the button be passed into SimpleMethod()?

Tall-Cool-Drink
Автор

Thanks for this video, I happen to be working along with reactive UI and I had to do some changes... instead all those bindings on the Xaml side I went to the .CS side and typed a
"this.BindCommand(ViewModel, x=>SimpleMethod, x=>Button_one);"

thanks my good friend

EduardoMartinez-dmpp
Автор

Hey @Eduardo Rosas, what's that extension you have there that shows the number of references for each particular sub/function?

jviper
Автор

You are a great teacher Eduardo! Amazing videos . I am new to MVVM architecture and you really helped me vision it. Muchisimas gracias! Un saludo!

mgeorgescu
Автор

Why do we call the function in the Execute method of the Command class? Does this mean we should make a class for every button?

celestrial
Автор

hey make us an example of real world application tutorial from scratch here in youtube
thank you

krimbelkacem
Автор

It won't work for me. It says the following :

Could not find default endpoint element that references contract in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

Sirkusbarnet
Автор

FYI for others using VS 2013: at 9 min mark, I was not able to find the COMMAND dropdown in the Properties Window (right side). I had to change "Arrange by: Category" dropdown to "Arrange by: Name" to see the COMMAND dropdown.

nanonerd
Автор

how about if i want double click event ?

wisnu
Автор

Is "ViewModelBase" just a random name in this case? Seems like it would make more sense for it to be called "MainPageViewModel" -- what am I missing here?

black-hammer
Автор

Is the code for this available on Github or elsewhere?

black-hammer
Автор

why is the "SimpleMethod" in a view-model class? shouldn't it technically be in the Model Class? he did that just for example right?

MrSHHAN
Автор

Very good, thank you. I will follow your course at Udemy to learn more.

krogilds
Автор

Hi, thanks for your video. Can you upload similar video on vb.net WPF?

pcanteroh
Автор

Okay, so that deals with clicking it. Wonderful, what about all the other stuff like hovering the mouse over the control, mouse entering/leaving, mouse moving, key presses, property changes and the myriad of other possible events. If the purpose of ICommand is to get non-generalized code out of the XAML it's failed to begin with as you still have to reference specific classes in there. Plus, if all it can do is deal with clicking, it's pretty much pointless.

spudhead
join shbcf.ru