xyzzer / WinRTXamlToolkit

WinRT XAML Toolkit
Other
283 stars 67 forks source link

Drag from TreeView without changing selection - UWP #12

Open hutterm opened 8 years ago

hutterm commented 8 years ago

whenever I want to drag one of the items in the TreeView it gets selected first. Is there a way to only select on PointerReleased? That would enable my scenario where I don't want Selection to change.

A quick look into the code looks like the "Header" - Button handling of the TreeViewItem is hardcoded to only respond to PointerPressed. Is this correct, or is there an easy way?

Would it actually be possible to handle this internally by using the Clicked event of the "Header"-Button? That way one could decide for a different behavior in the Template by changing the ClickMode to Released!