AppBarButton.Flyout bad positioning

后端 未结 1 870
天命终不由人
天命终不由人 2020-12-06 08:00

A have the following CommandBar in my Windows Phone 8.1 (I\'m using the Universal template):

    
        
                


        
相关标签:
1条回答
  • 2020-12-06 08:47

    I believe this is a known issue. Instead of putting the MenuFlyout in-line, create it on the click event:

    private void AppBarButton_Click(object sender, RoutedEventArgs e)
            {
                MenuFlyout mf = (MenuFlyout)this.Resources["MyFlyout"];
    
                mf.Placement = FlyoutPlacementMode.Bottom;
                mf.ShowAt(this.root);
            }
    

    See if that works.

    0 讨论(0)
提交回复
热议问题