public void DoIt(object item)
 {
     try
     {
         ConnectedAnimation ConnectedAnimation = PlaylistContentView.PrepareConnectedAnimation("forwardAnimation", item, "connectedElement");
         ConnectedAnimation.Configuration = new DirectConnectedAnimationConfiguration();
         ConnectedAnimation.TryStart(destinationElement);
     }
     catch (Exception)
     {
     }
 }
        public async void UndoIt(object item)
        {
            try
            {
                PlaylistContentView.ScrollIntoView(item, ScrollIntoViewAlignment.Default);
                PlaylistContentView.UpdateLayout();
                MainPageViewModel.Current.IsPopupActive = false;

                ConnectedAnimation ConnectedAnimation = ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("backwardsAnimation", destinationElement);
                //ConnectedAnimation.Completed += ConnectedAnimation_Completed;
                ConnectedAnimation.Configuration = new DirectConnectedAnimationConfiguration();
                await PlaylistContentView.TryStartConnectedAnimationAsync(ConnectedAnimation, item, "connectedElement");
            }
            catch (Exception)
            {
            }
        }
        private void HandleMessengerHelper(MessengerHelper messenger)
        {
            try
            {
                switch (messenger.Action)
                {
                case MessengerAction.ScrollToItem:
                    switch (messenger.Target)
                    {
                    case TargetView.Playlist:
                        if (messenger.Item == null && PlaylistContentView.Items != null)
                        {
                            messenger.Item = PlaylistContentView.Items.FirstOrDefault();
                        }
                        PlaylistContentView.ScrollIntoView(messenger.Item, ScrollIntoViewAlignment.Leading);
                        break;

                    case TargetView.Tracks:
                        if (messenger.Item == null && TracksListView.Items != null)
                        {
                            messenger.Item = TracksListView.Items.FirstOrDefault();
                        }
                        TracksListView.ScrollIntoView(messenger.Item, ScrollIntoViewAlignment.Leading);
                        break;

                    case TargetView.SelectedPlaylist:
                        if (messenger.Item == null && SelectedPlaylistViewExpanded.Items != null)
                        {
                            messenger.Item = SelectedPlaylistViewExpanded.Items.FirstOrDefault();
                        }
                        SelectedPlaylistViewExpanded.ScrollIntoView(messenger.Item, ScrollIntoViewAlignment.Leading);
                        break;

                    case TargetView.Alphabet:
                        PlaylistContentView.ScrollIntoView(messenger.Item, ScrollIntoViewAlignment.Leading);
                        break;
                    }
                    break;
                }
            }
            catch (Exception)
            {
            }
        }