Invoke UIElement’s Focus() Method From ViewModel

One of the things WPF developers often notice is inability to SetFocus on a particular control from the ViewModel. This problem can be however easily resolved using an attached property. Let's examine the code. We will begin by writing an attached property, for the purpose of example, named as IsFocused. The sole objective of the … Continue reading Invoke UIElement’s Focus() Method From ViewModel

SharedSizeGroup: Managing Column Size across Grids

SharedSizeGroup is an underused WPF attribute, but one that can make life lot more easier when design WPF forms with multiple Grids that need to share a column size. Consider the screenshot below. The three pairs of Label and Textbox are in separate grids (with column width set to auto), resulting in an unorganized layout. … Continue reading SharedSizeGroup: Managing Column Size across Grids

Leaders and Eye Specialist

How do I define leadership or how would like myself to be seen as a leader in the future. These are some of the questions I often come across. To be honest, it is quite hard to answer it precisely, after all, each 'act' of leadership depends on various factors including what the circumstances/situation demands. … Continue reading Leaders and Eye Specialist