Saturday, August 29, 2009

Binding Checkbox with the Listview Item Selection

Hi All,

I know, lot of people juggle around for this. I also did ;)

Have you ever wondered to have a checkbox in a listview item which should be checked/unchecked as per the listviewitem selection and vice versa?

Suppose if you have a checkbox as a listview item, and you want to check/uncheck the checkbox as soon as user selects the listview item. And vice versa, the listview item should be selected as soon as user selects the checkbox. The following line solves this purpose :



HTH,
Vikas Bhandari

Formatting the GridView Column Header in Listview

Hi All,

Please find below the code to set the background color of a GridviewColumnHeader inside a Listview. I will add more to it ;)



Code to set the font size of a GridviewColumnHeader :



Thanks,
Vikas

Monday, August 10, 2009

WPF : Styling a Combobox, Button and Tabcontrol

Hi All,

I am still very much like a novice in my WPF skills. Still, I thought to share something useful with the world. I was looking to create a good looking Combobox style for my project. And (obviously after too much efforts), I created one. I know, it is simple but sometimes a novice like me tries to find an already build style so I thought I will post it here :

I created something like this :



You can download the complete project from here : Click here to download.

Please let me know if you have any questions or suggestions.

Thanks,
Vikas