private async void FlipRow() { if (this.rowIndices.Count == 0) { this.FillRowIndicesCollection(); this.pictureCurrentFrameImage = await this.GetImageSource(); } int rowIndex = this.rowIndices[this.randomGenerator.Next(this.rowIndices.Count)]; for (int i = 0; i < 3; ++i) { MosaicTile tile = this.tilesPanel.Children[(rowIndex * 3) + i] as MosaicTile; } this.rowIndices.Remove(rowIndex); }
private static void OnBackContentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { MosaicTile tile = sender as MosaicTile; tile.OnBackContentChanged(args.NewValue, args.OldValue); }