Category Archives: WPF

FODY Commander and WPF Commands

This is a brief tutorial on using FODY Commander to implement WPF Commands. To better appreciate this, I will recommend just to have a look at this and this post I wrote on WPF Commands. The post I wrote before on WPF commands discuss the WHY part of WPF Commands. So I will not go… Read More »

WPF Custom Commands explained

In this tutorial we create WPF custom commands and pass parameters to it. The sample used will be simple to understand and relate to. I will not be going into the deep gory details. Just a gentle push which I am sure will be enough to set you off on the slippery slope which is… Read More »

WPF MeasureOverride ArrangeOverride explained

This is a brief tutorial on WPF MeasureOverride ArrangeOverride functions. The details on these two are rather sketchy online and hence I decided to write this tutorial. So what are these methods? When do you need them? As usual I will start with WHY first and then discuss the HOW.

Mahapps controls customization

This is a brief tutorial on how to change the look and feel of Mahapps controls. I will be making a small change to Mahapps datagrid to demonstrate the steps. Anyone who has been working with WPF for a reasonable amount of time must have come across Mahapps. In case you haven’t then you must… Read More »

WPF Commands Explained

WPF has many delightful features. Commands are one of them. Somehow they have remind me of pointers in C and Delegates and Events in C#. If you want to know more about WPF custom command implementation which takes parameters then refer to this blog post. However if I were you, I would simply stop here… Read More »

Binding WPF Textblock to two properties using Multibinding

In the ancient and cruel world of WPF you might want to populate a TextBlock with a string which will contain data from different sources. For example, you might want to display song and band in a single textBlock like, “Where Do You Go – No Mercy”. The song name and band name can be… Read More »

WPF Dependency Property vs INotifyPropertyChanged

When to use WPF Dependency Property vs INotifyPropertyChanged? A little background: WPF databinding has two essential parts: Source and Target. Now Target has to be a Dependency Property. But source can be a simple property with INotifyPropertyChanged implemented. Or a Dependency property. In both cases, any change to the property will see the UI getting… Read More »