How to show Popup/Flyout at clicked item in ListView/GridView in Windows Store App

后端 未结 3 1110
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 11:21

I am working on a Windows Store App and would like to show some additional information about an Item that was clicked in ListView or GridView. This information should be sho

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 11:33

    Use attached Flyout:

    
        
            
                ...
            
            
                
                    
                        ...
                    
                
            
        
    
    

    And the code:

    private void ListRightTapped( object sender, RightTappedRoutedEventArgs e )
    {
        FlyoutBase.ShowAttachedFlyout( sender as FrameworkElement );
    }
    

提交回复
热议问题