How CLR Handles Static, Non-Virtual Instance, and Virtual Instance method calls

How does method execution differs when CLR handles static, instance and virtual instance methods ? To answer them, one needs to begin by understanding a bit more on how CLR handles Managed Heap during execution of a method. Memory Allocation in Managed Heap When the application execution begins, as the CLR gets loaded, the thread … Continue reading How CLR Handles Static, Non-Virtual Instance, and Virtual Instance method calls

Cheat Sheet for Path Markup Syntax

Path Markup Syntax provides a mini-language for describing complex collection of lines and curves. Make no mistake when describing it as mini-language - It is quite powerful and could reduces a lot of nested collection of Xaml elements into a single line. Having said so, I personally favour the Xaml Element way of constructing elements, mainly due … Continue reading Cheat Sheet for Path Markup Syntax

Why be wary of Value Coercion in Dependency Properties

If you are not quite familiar with Value Coercion, it allows you to change/correct value of a property, when it is assigned an unexpected value. This also allows you to ensure relative properties are also kept in sync or in other words, allows you to enforce relation between properties of an object. For example, Date … Continue reading Why be wary of Value Coercion in Dependency Properties

Circular Progressbar in WPF

One of the things I have been working recently required me to use a Circular Progress bar. Incidently, I was surprised there wasn't something useful in the WPF package, but it wasn't that hard to do at the hindsight. The core idea would be to draw two overlapping circles - one for the background circle … Continue reading Circular Progressbar in WPF