How to implement Hold in Listbox?
问题 If hold the listbox, I want to get listbox index. This is my code: <ListBox Margin="0,0,-12,0" Hold="holdlistbox" x:Name="listbox" SelectionChanged="listbox_SelectionChanged" SelectedIndex="-1"> </ListBox> private void holdlistbox(object sender, System.Windows.Input.GestureEventArgs e) { //How to get ListBox index here } If anyone knows help me to do this. 回答1: e.OriginalSource will get you the actual control that was held (the top-most control directly under your finger). Depending on your