views:

162

answers:

0

Hello,

I have loaded this project into Visual Studio => http://sites.google.com/site/huyphamproject/Home/MyDashBoard.zip

I have replaced all ItemsControl declaration in the main xaml file with ListBox so I have a SelectedItem property which I would need to use it with mvvm + datatemplate.

When I select now one item in the ListBox-dashboard the selected item stays not in the center on my cursor instead always 2 items get selected and in the center of this selection(between those 2 items) is my cursor. See this image:

alt text

1.) How can I fix that error?

Another error is that the height of the single items is more than the height of the ListBox when the items are hovered with the mouse cursor.

2.) How can that be fixed? Bind the Height of the ListBox to Items Height when its hovered?