在Wpf中拖动期间,如何更改鼠标光标(或者可能使用装饰器)以指示droptarget不接受拖动的项目?
我试图e.Effects = DragDropEffects.None在DragEnter活动期间设置,但这不起作用,我怀疑我误解了应该使用的功能.我已经尝试过使用这个GiveFeedback事件但是没有看到droptarget它如何影响它.
是否有任何教程可以解决droptargetWpf中的拒绝问题?
I'm trying to display a Wpf Treeview with items sorted by a CollectionViewSource.
Currently, everything is working except sorting using this code in my resource dictionary:
<HierarchicalDataTemplate DataType="{x:Type books:Container}" ItemsSource="{Binding Path=Items}">
<nav:ContainerControl />
</HierarchicalDataTemplate>
Run Code Online (Sandbox Code Playgroud)
What would be the syntax for changing the HierarchicalDataTemplate to bind to a CollectionViewSource that in turn pulls from the Items property?
I've tried variations of the code posted on Bea Stollnitz's blog with no success. I can't figure out how to set the source of …
data-binding wpf hierarchicaldatatemplate collectionviewsource