Passing Command Parameter for Buttons within an ItemTemplate using MVVM Pattern in WPF

Introduction

In this tip, we will talk about how to pass a CommandParameter for a Button control which is used within theItemTemplate of the ListBox control. We are trying to load the list of Buttons inside the ListBox. The list of Buttons is in English and Danish language. This tip will help you to identify which Button has been pressed and how to pass the CommandParameter within the Button control in MVVM. Continue reading

By Sriramjithendra Posted in WPF

Partial method in C#

A partial class or struct may contain a partial method. Similar to a partial class, a partial method can be used as a definition in one part while other part can be the implementation. If there is no implementation of partial method, the method and its calls are removed at compile time.  Continue reading

By Sriramjithendra Posted in C#.NET