问题
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