开发者

WPF ListBox getting item datacontext OnMouseOver

I currently have a view that contains a ListBox bound to a a collection of view models and a user control that I would like to bind to the current item that the mouse is over. How can I get the current highlighted item in the list and bind it to the user control using only XAML and code in the View Model?

Edit: Th开发者_开发技巧e following image might be more descriptive of the intended action. alt text http://img134.imageshack.us/img134/6263/34548010.png


As eduardo said, sometimes to make a solution in pure MVVM is too complicated.

if you reformulate your question and provide some code, you can get more answers.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜