C# WPF - Relay/Delegate Commands [Part 2]
Автор: ToskersCorner
Загружено: 2016-12-13
Просмотров: 34836
This is episode 2 of working with WPF commands. In this we will cover implementing a RelayCommand handling class to create multiple commands without the need for individual classes. We also cover using a predicate to determine the 'CanExecute' of our commands.
We make a simple application that displays pre-determined messages in either a MessageBox or a Console.WriteLine().
MainWindow.xaml - https://pastebin.com/1d86UfDE
RelayCommand - https://pastebin.com/xu3g0MGJ
MessageViewModel - https://pastebin.com/mMBPjLzX
Survey for this episode:
http://www.opinionstage.com/tosker/re...
*Support me on Patreon
/ toskerscorner
** Tip Jar **
Paypal: [email protected]
BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu
ETH: 0xFf79A145e1ED6F538607Ec374968e605cbea758b
BCH: qqpgrnzuhc5hav4e79m8nfhmugs46jtl0ujxcu0tj5
LTC: MHXQmJA3hkwTPeArB9QPNkcLiHQx723yMb
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: