MVVM’s command binding has probably been the same for more than a decade. Hence you should take what you read with a grain of salt. The Problem Patterns – WPF Apps With The Model-View-ViewModel Design Pattern | Microsoft Docs has a detailed account of the pattern. It also explains the code it suggests to a […]
Writing an asynchronous RelayCommand implementing ICommand
If you are familiar with MVVM, then you are already familiar with relay commands. We use relay commands to map a method with the ICommand raised from a control. Below is the typical code snippet you may have seen a lot of time. The class below is pretty simple; it accepts a method and allows […]
Complete XAML Solution For SelectAll In Datagrid
Over the period of time lot of asks and solutions were made for selectall selector for DataGrid. However, I failed to see a solution which is completely built on XAML. When my friend approached me, I thought that I will write my own. The idea is to have a template column with a separate definition for […]
Pin / Unpin Control Template For Toggle Button
I was looking for a template which will help put a pin / unpin button using toggle button. Thanks to Antoni Dol who has already shared a fantastic template in his blog. I had to make few changes with respective to the pinned style as I didn’t like the original one. So I made few […]