Skip to content

Commit

Permalink
Fix Picture resource names
Browse files Browse the repository at this point in the history
Fixes names of picture resources that we look for so they match the
actual keys defined in XAML.
  • Loading branch information
DavidShootsMS committed Sep 21, 2015
1 parent c809fb9 commit eb5070d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sample Applications/PhotoFlipperDemo/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ private void AnimateToNextPicture()
if (nextPic > MaxPics)
nextPic = 1;

var df1 = FindResource("pic_01" + _currentPic) as DiffuseMaterial;
var df2 = FindResource("pic_01" + nextPic) as DiffuseMaterial;
var df1 = FindResource("Pic01" + _currentPic) as DiffuseMaterial;
var df2 = FindResource("Pic01" + nextPic) as DiffuseMaterial;

if ((df1 == null) || (df2 == null))
return;
Expand Down

0 comments on commit eb5070d

Please sign in to comment.