Is a Silverlight Application stateless?


clearly novice question - , searching around found thread @ http://forums.silverlight.net/forums/p/117501/267794.aspx#267794 still not answer question on subject line. using basic silverlight business application, comes 2 pages (home , about), observed each time home page navigated (via home button in navigation bar), home.xaml.cs constructor invoked first , onnavigated method next. invoking constructor of course resets ui state of home page. what's happening here?

the default behavior navigation create new instance of page.

you can change behavior.

this blog post shows example of how:

http://csharperimage.jeremylikness.com/2009/11/dynamic-module-loading-with-silverlight.html

basically, create view host can created each time navigation manager, parse url request , reference singleton of view i've created it's same view, every time.



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Motherboard replacement

Remote Desktop App - Error 0x207 or 0x607

AD Replication Failure Between Server 2008 R2 and Server 2003 - LDAP bind failed with error 8341