Пример #1
0
 void HideCommands()
 {
     _timer.Stop();
     UIAnimationHelper.FadeOut(Commands);
     SpeedRateTextBlock.Visibility = Visibility.Collapsed;
     isCommandShown = false;
 }
Пример #2
0
 private void ShowCommands()
 {
     SpeedRateTextBlock.Visibility = Visibility.Visible;
     _timer.Start();
     UIAnimationHelper.FadeIn(Commands);
     isCommandShown = true;
 }
Пример #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
 public SearchFlyout()
 {
     this.InitializeComponent();
     Window.Current.CoreWindow.KeyDown += (sender, arg) =>
     {
         if (arg.VirtualKey == Windows.System.VirtualKey.Enter)
         {
             Search();
         }
     };
     UIAnimationHelper.FadeOut(this);
     ComboBox.ItemsSource = _comboBoxStrings;
 }
Пример #5
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);
     }
 }
Пример #6
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;
 }
Пример #7
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;
     }));
 }
Пример #8
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;
 }
Пример #9
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;
 }
Пример #10
0
 public void Hide()
 {
     UIAnimationHelper.FadeOut(this);
 }
Пример #11
0
 public void Show()
 {
     UIAnimationHelper.FadeIn(this);
 }
Пример #12
0
 public AlbumFlyout()
 {
     this.InitializeComponent();
     UIAnimationHelper.FadeOut(this);
 }
Пример #13
0
 public VerticalAlbumItemTemplate()
 {
     this.InitializeComponent();
     UIAnimationHelper.FadeOut(PlayListGrid);
 }
Пример #14
0
 private void ImageOpened(object sender, RoutedEventArgs routedEventArgs)
 {
     UIAnimationHelper.FadeIn(FirstImage);
 }
Пример #15
0
 public void Hide()
 {
     FadeOutAnimation.Begin();
     UIAnimationHelper.FadeOut(this);
 }
Пример #16
0
 public void Show()
 {
     UIAnimationHelper.FadeIn(this);
     FadeInAnimation.Begin();
 }