Specify Popup location, throughout page navigation

后端 未结 3 1037
难免孤独
难免孤独 2021-01-21 06:42

Hello I have an issue with positioning a popup, in a WP8 app.

My code is that I have instantiated a popup, where the child is a usercontrol, like:

Popup          


        
3条回答
  •  情歌与酒
    2021-01-21 07:33

    I am not sure but try something like this.

    var activePage = (PhoneApplicationPage) RootFrame.Content;
    var pageContent = (Grid) activePage.Content;
    
    UsercontrolElement childpopup = new UsercontrolElement();
    
    Grid.SetRowSpan(childpopup , pageContent.RowDefinitions.Count);
    pageContent.Children.Add(childpopup );
    

提交回复
热议问题