private void createChangealbumNamePopup()
 {
     AlbumNameDateModifyFlyout mypane = new AlbumNameDateModifyFlyout(pageTitle, albumInfo);
     settingsWidth = 550;
     mypane.Width = settingsWidth;
     mypane.Height = windowBounds.Height;
     settingsPopup.Child = mypane;
 }
        private void createPopupWindowContainsFlyout(string options)
        {
            settingsPopup = new Popup();
            settingsPopup.Closed -= OnPopupClosed;
            settingsPopup.Closed += OnPopupClosed;
            Window.Current.Activated -= OnWindowActivated;
            Window.Current.Activated += OnWindowActivated;
            settingsPopup.IsLightDismissEnabled = true;
            settingsPopup.Width = settingsWidth;
            settingsPopup.Height = windowBounds.Height;
            // Add the proper animation for the panel.
            settingsPopup.ChildTransitions = new TransitionCollection();
            settingsPopup.ChildTransitions.Add(new PaneThemeTransition()
            {
                Edge = (SettingsPane.Edge == SettingsEdgeLocation.Right) ?
                       EdgeTransitionLocation.Right :
                       EdgeTransitionLocation.Left
            });

            // Create a SettingsFlyout the same dimenssions as the Popup.
            if (options == "changealbum")
            {
                AlbumNameDateModifyFlyout mypane = new AlbumNameDateModifyFlyout(pageTitle, albumInfo);
                settingsWidth = 650;
                mypane.Width = settingsWidth;
                mypane.Height = windowBounds.Height;
                // Place the SettingsFlyout inside our Popup window.
                settingsPopup.Child = mypane;
            }
            else if (options == "updatecomment")
            {
                List<PhotoDataStructure> listmp = new List<PhotoDataStructure>();
                if (itemGridView.SelectedItems.Count > 0)
                {
                    for (int i = itemGridView.SelectedItems.Count - 1; i >= 0; i--)
                    {
                        listmp.Add((PhotoDataStructure)itemGridView.SelectedItems[i]);
                    }
                }
                AlbumMediasCommentModifyFlyout mypane = new AlbumMediasCommentModifyFlyout(listmp);
                settingsWidth = 550;
                mypane.Width = settingsWidth;
                mypane.Height = windowBounds.Height;
                // Place the SettingsFlyout inside our Popup window.
                settingsPopup.Child = mypane;
            }
            // Let's define the location of our Popup.
            settingsPopup.SetValue(Canvas.LeftProperty, SettingsPane.Edge == SettingsEdgeLocation.Right ? (windowBounds.Width - settingsWidth) : 0);
            settingsPopup.SetValue(Canvas.TopProperty, 0);
            settingsPopup.IsOpen = true;
        }