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.
How can 开发者_StackOverflow社区I do that programmatically. I have tried:
Probably this:
listView.AddHandler(GridViewColumnHeader.ClickEvent, new RoutedEventHandler(Header_Click));
精彩评论