Get the item doubleclick event of listview

后端 未结 16 1418
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 02:17

What do I need to do in order to reference the double click event for a listview control?

16条回答
  •  离开以前
    2020-12-01 02:51

    i see this subject is high on google, there is my simple and working sample :)

    XAML:

        
            
                
                    
                    
                
            
        
    

    C#

        private void MainTCList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
                TC item = (TC)MainTCList.Items.CurrentItem;
                Wyswietlacz.Content = item.UserTID;  
        }
    

    Wyswietlacz is a test Label to see item content :) I add here in this last line a method to Load Page with data from item.

提交回复
热议问题