Silverlight - Cannot resolve TargetName

泄露秘密 提交于 2020-01-05 13:10:42

问题


I have a multi-page (xaml pages) Silverlight Game Application. (SL2)

The flow is something like this

Login_Screen -> Game1_Instruction_screen -> Game1 ->ScoreCard-> Game2_Instruction -> Game2 ->ScoreCard->.....loop.... ->Game_Over_screen

I am navigating between xaml pages using -

Game1 g = New Game1();
this.content = g;

Now I have an animation on each screen which highlights the text.

When the game loop starts, everything works first time (for ex storyboard1.begin())

But when game comes to 2nd time in loop it start giving following error

Err at line : storyboard1.begin();
Err Msg:Cannot resolve TargetName txtMessage. 

回答1:


This post has resolved my problem.

Silverlight 2 Multi Page Navigation -



来源:https://stackoverflow.com/questions/1133933/silverlight-cannot-resolve-targetname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!