private Flyout GenerateFlyout(object sender)
        {
            var renamePlaylistDialog = new RenamePlaylistDialog
            {
                OnOkClick    = async newName => await RenamePlaylist(newName),
                PlaylistName = SelectedItem.Title
            };
            var flyout = new Flyout
            {
                Placement       = PlacementMode.Top,
                PlacementTarget = (UIElement)sender,
                Content         = renamePlaylistDialog,
                IsOpen          = true
            };

            return(flyout);
        }
        private Flyout GenerateFlyout(object sender)
        {
            var renamePlaylistDialog = new RenamePlaylistDialog
                                           {
                                               OnOkClick = async newName => await RenamePlaylist(newName),
                                               PlaylistName = SelectedItem.Title
                                           };
            var flyout = new Flyout
                             {
                                 Placement = PlacementMode.Top,
                                 PlacementTarget = (UIElement)sender,
                                 Content = renamePlaylistDialog,
                                 IsOpen = true
                             };

            return flyout;
        }