Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个列表框和一个网格(5 行,1 列),可能每个网格行都有一个画布。当我从列表框中拖动一个项目并拖动到网格中的一行时,该行将改变颜色。我该怎么做?如果我想同时更改这一行和下一行,可以吗?
谢谢!
看看这些文章——
http://www.codeproject.com/Articles/17266/Drag-and-Drop-Items-in-a-WPF-ListView
http://www.codeproject.com/Articles/22855/ListBox-Drag-Drop-using-Attached-Properties
http://blogs.msdn.com/b/jaimer/archive/2007/07/12/drag-drop-in-wpf-explained-end-to-end.aspx