Exemplo n.º 1
0
 private void MoveToNextOrPrevious(bool next)
 {
     if (next)
     {
         GamesSlideView.Swap(this._elements, 0, 1);
         GamesSlideView.Swap(this._elements, 1, 2);
     }
     else
     {
         GamesSlideView.Swap(this._elements, 1, 2);
         GamesSlideView.Swap(this._elements, 0, 1);
     }
     this.UpdateSources(false, new bool?(next));
 }
Exemplo n.º 2
0
        private static void OnBackgroundBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GamesSlideView gamesSlideView = d as GamesSlideView;

            if (gamesSlideView == null)
            {
                return;
            }
            // ISSUE: explicit reference operation
            Brush newValue = e.NewValue as Brush;

            if (newValue == null)
            {
                return;
            }
            ((Panel)gamesSlideView.gridRoot).Background = newValue;
        }