ListBoxItem ControlTemplate
In this article I will show how we can change the ListBoxItem template for a ListBox in WPF to have a button functionality for the same where we can raise the OnClick() event as well as attach a Command to it.
Let's share, let's learn about C#, .NET, Cloud, Programming and much more technical stuff
In this article I will show how we can change the ListBoxItem template for a ListBox in WPF to have a button functionality for the same where we can raise the OnClick() event as well as attach a Command to it.
[Read more…] about IsSelected for ListBoxItem(WPF) Template
What is a template in laymen’s term? A template is a shape or mold which we can apply on a look less or some randomly shaped piece of some object. E.g. suppose we have some randomly shaped clay and we want that clay to attain some shape may be like circle or triangle. This we can achieve by having a pre molded iron shape and pressing hard on that clay by keeping the other properties of clay intact such as hardness. WPF templates help us to achieve the same functionality. The controls in WPF are basically look less or they have some pre-defined shape which we may want to change in some scenario.
[Read more…] about Working with WPF Templates