Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Animation not working in code

 
 
Old 01-10-2006   #1 (permalink)
viliescu


 
 

Animation not working in code


I set some animations in a WBA.
First I register the name:
Application.Current.MainWindow.RegisterName(myElement.Name, myElement);
When I try to set a storyboard and set an animation on this element I get
'The name 'myElementName' could not be resolved in the name scope of
'MS.Internal.AppModel.RootBrowserWindow' - the same error you get when the
name is not registered.

This code used to work in Sep CTP.

Did something change for Nov CTP regarding animations?

Thank you,
Valentin Iliescu

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
viliescu


 
 

RE: Animation not working in code

I must mention I am animating a custom control.

"viliescu" wrote:

>
> I set some animations in a WBA.
> First I register the name:
> Application.Current.MainWindow.RegisterName(myElement.Name, myElement);
> When I try to set a storyboard and set an animation on this element I get
> 'The name 'myElementName' could not be resolved in the name scope of
> 'MS.Internal.AppModel.RootBrowserWindow' - the same error you get when the
> name is not registered.
>
> This code used to work in Sep CTP.
>
> Did something change for Nov CTP regarding animations?
>
> Thank you,
> Valentin Iliescu

My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
David Sklar


 
 

Re: Animation not working in code

I found this also, when I was porting that famous chess program.

The chess program had a Chess3DPage class, which included an
"instantiation" of a separate class (GameBoard3D). In earlier CTPs, as
far as I can tell, it was OK for scope A to refer to a name in scope B;
things worked magically. That is what seems to have changed. I fixed
the chess program by ensuring that name resolution was always requested
within the scope in which the name was defined. I'd be glad to share
my repair with you, of course!

My System SpecsSystem Spec
Old 01-10-2006   #4 (permalink)
viliescu


 
 

Re: Animation not working in code

Thanks again.

I have changed the name scope and now it's working.

Valentin

"David Sklar" wrote:

> I found this also, when I was porting that famous chess program.
>
> The chess program had a Chess3DPage class, which included an
> "instantiation" of a separate class (GameBoard3D). In earlier CTPs, as
> far as I can tell, it was OK for scope A to refer to a name in scope B;
> things worked magically. That is what seems to have changed. I fixed
> the chess program by ensuring that name resolution was always requested
> within the scope in which the name was defined. I'd be glad to share
> my repair with you, of course!
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Re: Code 10 DVD not working. Vista General
CDW/DVD stopped working CODE 10 Vista hardware & devices
Network "Activity Animation" not working for Internet Connection Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46