예제 #1
0
 void HideCommands()
 {
     _timer.Stop();
     UIAnimationHelper.FadeOut(Commands);
     SpeedRateTextBlock.Visibility = Visibility.Collapsed;
     isCommandShown = false;
 }
예제 #2
0
 public SearchFlyout()
 {
     this.InitializeComponent();
     Window.Current.CoreWindow.KeyDown += (sender, arg) =>
     {
         if (arg.VirtualKey == Windows.System.VirtualKey.Enter)
         {
             Search();
         }
     };
     UIAnimationHelper.FadeOut(this);
     ComboBox.ItemsSource = _comboBoxStrings;
 }
예제 #3
0
 private void ChangedSectionsHeadersState(int i)
 {
     if (i == _currentSection)
     {
         return;
     }
     UIAnimationHelper.FadeOut(SectionsGrid.Children[_currentSection]);
     UIAnimationHelper.FadeIn(SectionsGrid.Children[i]);
     _currentSection = i;
     //for (int j = 0; j < SectionsHeaderListView.Items.Count; j++)
     //    Locator.MainPageVM.VideoVM.Panels[j].Opacity = 0.4;
     Locator.MainPageVM.VideoVM.Panels[i].Opacity = 1;
 }
예제 #4
0
 private void Album_OnTapped(object sender, TappedRoutedEventArgs e)
 {
     if (PlayListGrid.Visibility == Visibility.Visible)
     {
         ClosePlayListArrow.Visibility = Visibility.Collapsed;
         OpenPlayListArrow.Visibility  = Visibility.Visible;
         UIAnimationHelper.FadeOut(PlayListGrid);
     }
     else
     {
         OpenPlayListArrow.Visibility  = Visibility.Collapsed;
         ClosePlayListArrow.Visibility = Visibility.Visible;
         UIAnimationHelper.FadeIn(PlayListGrid);
     }
 }
예제 #5
0
 public void ChangedSectionsHeadersState(int i)
 {
     AlbumsByArtistSemanticZoom.IsZoomedInViewActive     = true;
     AlbumsByArtistSnapSemanticZoom.IsZoomedInViewActive = true;
     if (_currentSection == i)
     {
         return;
     }
     UIAnimationHelper.FadeOut(SectionsGrid.Children[_currentSection]);
     UIAnimationHelper.FadeIn(SectionsGrid.Children[i]);
     _currentSection = i;
     for (int j = 0; j < SectionsHeaderListView.Items.Count; j++)
     {
         Locator.MainPageVM.MusicLibraryVm.Panels[j].Opacity = 0.4;
     }
     Locator.MainPageVM.MusicLibraryVm.Panels[i].Opacity = 1;
 }
예제 #6
0
 public Task ChangedSectionsHeadersState(int i)
 {
     if (i == _currentSection)
     {
         return(Task.FromResult(false));
     }
     return(DispatchHelper.InvokeAsync(() =>
     {
         UIAnimationHelper.FadeOut(SectionsGrid.Children[_currentSection]);
         UIAnimationHelper.FadeIn(SectionsGrid.Children[i]);
         _currentSection = i;
         for (int j = 0; j < SectionsHeaderListView.Items.Count; j++)
         {
             Locator.MainPageVM.Panels[j].Opacity = 0.4;
         }
         Locator.MainPageVM.Panels[i].Opacity = 1;
     }));
 }
예제 #7
0
 public MusicColumn()
 {
     this.InitializeComponent();
     this.Loaded += (sender, args) =>
     {
         if (_isLoaded)
         {
             return;
         }
         UIAnimationHelper.FadeOut(TracksPanel);
         for (int i = 0; i < SectionsGrid.Children.Count; i++)
         {
             if (i != _currentSection)
             {
                 UIAnimationHelper.FadeOut(SectionsGrid.Children[i]);
             }
         }
         _isLoaded = true;
     };
     this.SizeChanged += OnSizeChanged;
 }
예제 #8
0
 public MainPage()
 {
     InitializeComponent();
     this.SizeChanged += OnSizeChanged;
     this.Loaded      += (sender, args) =>
     {
         FadeOutPage.Begin();
         ChangeLayout(Window.Current.Bounds.Width);
         for (int i = 0; i < SectionsGrid.Children.Count; i++)
         {
             if (i == _currentSection)
             {
                 continue;
             }
             UIAnimationHelper.FadeOut(SectionsGrid.Children[i]);
         }
         FadeInPage.Begin();
         if (!string.IsNullOrEmpty(App.TemporaryMRL))
         {
             OpenVideoFromFileExplorer();
         }
     };
     NavigationCacheMode = NavigationCacheMode.Enabled;
 }
예제 #9
0
 public void Hide()
 {
     UIAnimationHelper.FadeOut(this);
 }
예제 #10
0
 public AlbumFlyout()
 {
     this.InitializeComponent();
     UIAnimationHelper.FadeOut(this);
 }
예제 #11
0
 public VerticalAlbumItemTemplate()
 {
     this.InitializeComponent();
     UIAnimationHelper.FadeOut(PlayListGrid);
 }
예제 #12
0
 public void Hide()
 {
     FadeOutAnimation.Begin();
     UIAnimationHelper.FadeOut(this);
 }