0
Reply

ListBox item tool tip or popup WPF

Amruta Asbe

Amruta Asbe

Feb 9 2012 11:17 PM
2.9k
Hello,
          I have a listbox defined in xaml 
 <ListBox  Name="lstLibrary" Grid.Column="0" Grid.Row="0" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" PreviewMouseLeftButtonDown="lstLibrary_PreviewMouseLeftButtonDown" >
            
  </ListBox>
I set the item source behind the code
 lstLibrary.ItemsSource = Libraray;
 lstLibrary.DisplayMemberPath = "Name";
I do this cause Library is object and I get from looping so have to set it behind the code
Now Whenever I place my mouse it should show me the other members (of the mouseover item) in either a tooltip or a popup
I am still new..
I dont know which event to use for mouseover on each listbox item and then show their respective tool tip  

I hope I am clear thanks in advance