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

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

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