简体   繁体   中英

SetTargetProperty Method in Windows Store App

I'm currently using Ms Visual Studio 2012, windows store application to create a pacman game. I've been facing some errors shown below. Was hoping if anyone could help me out with solving it? Thanks..

Code:

Storyboard.SetTargetProperty(leftAnimation, new PropertyPath("(Canvas.Left)"));

Error showing:

The best overloaded method match for 'Windows.UI.Xaml.Media.Animation.Storyboard.SetTargetProperty(Windows.UI.Xaml.Media.Animation.Timeline, string)' has some invalid arguments

Metro (confusingly) has a different signature. Rather than a PropertyPath it takes a string :/

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.media.animation.storyboard.settargetproperty.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM