Exemplo n.º 1
0
 private void Refresh()
 {
     if (CurrentSong?.Equals(TargetSong) ?? false)
     {
         ShowAnimation.Begin();
     }
     else
     {
         HideAnimation.Begin();
     }
 }
Exemplo n.º 2
0
        public async void Hide()
        {
            await SetupCircleCoverAsync();

            if (ViewModel.ActiveSong != null)
            {
                ConnectedAnimationService.GetForCurrentView().DefaultDuration = TimeSpan.FromMilliseconds(500);
                ConnectedAnimationService.GetForCurrentView().PrepareToAnimate(ConnectedAnimationKeys.SpotlightTransition, CircleCover);
            }

            OnHiding();
            HideAnimation.Begin();
        }
 public void Hide()
 {
     HideAnimation.Begin();
     IsHidden = true;
 }
Exemplo n.º 4
0
 private void OnDataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
 {
     HideAnimation.Begin();
     Refresh();
 }