WPF win app and browser app
I'm hearing this alot, that you can develop an app in WPF and run it as a desktop app or in a browser.
Is this really true?
I've install visual studio 2010 and I see 2 project templates : WPF Windows Application and WPF Browser Application (XBAP).
Currently reading a book on WPF, it talks about Page-Base app, which can be use for navigation. To creatre an app to run on your browser you have to use the WPF Browser Application.
So if I start with WPF Windows Application template can I run it in a browser ? I am assuming not since most 开发者_如何学Goof my class will be Window and not Page ....
Correct; you can't. (Although you might want to look into ClickOnce)
You are hearing that you can use the same code in a WPF client application and a browser (Using XBAP or Silverlight). However, you do need to make separate projects (which can reference a common library). (Although you might want to look into Silverlight 3 desktop apps)
精彩评论