开发者

Datagrid column header click and drag-and-drop

开发者 https://www.devze.com 2023-04-03 07:55 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消