public bool OpenImageGallery()
        {
            GalleryWindow w = Container.AddGallery("images", "Image Gallery"); //TODO: use PivotDialog instead to get URL, invoked by talking to newly added image component

            w.ResizeToView();
            return(true); //TODO: return false if user cancelled PivotDialog
        }
        public bool OpenVideoGallery()
        {
            GalleryWindow w = Container.AddGallery("video", "Video Gallery"); //TODO: use PivotDialog instead, invoked by talking to newly added video component

            w.ResizeToView();
            return(true); //TODO: return false if user cancelled PivotDialog
        }
        public bool OpenActivityGallery()
        {
            GalleryWindow w = Container.AddGallery("activities", "Activity Gallery"); //TODO: use PivotDialog instead, then load activity

            w.ResizeToView();
            return(true); //TODO: return false if user cancelled PivotDialog
        }
        public GalleryWindow AddGallery(string source = "activities", string title = null)
        {
            GalleryWindow w = (GalleryWindow)AddWindow(GalleryWindowFactory, newInstance: true);

            w.GalleryView.Source = new Uri(ActivityWindow.URL_GALLERY_PREFIX + source + ".cxml"); //TODO: move logic from Studio's App.xaml.cs into GalleryWindow's Source proprty to translate partial URIs into ClipFlair gallery URIs
            if (title != null)
            {
                w.Title = title;
            }
            return(w);
        }
 private void BindGalleryWindow(GalleryWindow window)
 {
     if (window.View != null && View != null)
     {
         try
         {
             //NOP
         }
         catch (Exception ex)
         {
             ErrorDialog.Show("Failed to bind Gallery component", ex);
         }
     }
 }