Tono Nam
Tono Nam

Reputation: 36050

How can I add a listView column header a click event programmatically

I am building a dynamic listview and I am trying to achieve the same thing as in the picture bellow.

enter image description here

How can I do that programmatically. I have tried:
enter image description here

Upvotes: 1

Views: 2786

Answers (1)

brunnerh
brunnerh

Reputation: 185225

Probably this:

listView.AddHandler(GridViewColumnHeader.ClickEvent, new RoutedEventHandler(Header_Click));

Upvotes: 2

Related Questions