Datagrid column header click and drag-and-drop
I want to be able to run a command when a datagrid column header is clicked. The classic way is to set column header style with a button. But doing it so causes loosing ability to reorder columns.
Using MouseLeftButtonUp
event for click does not work because the mouse is开发者_如何学编程 captured in the header.
How can I manage to support both click and drag-and-drop events in Silverlight's datagrid column header?
精彩评论