System.IO.Stream stream = this.GetType().Assembly. This might look familiar if you've done it with WinForms. I could add an Animation declaratively but again, this is a little harder and more interesting.įirst, getting the embedded graphical resource. Then, two, I'll make the picture turn when I push the button. I could have loaded it from a location like my web server, but this is harder and educational for me. One, I'll load a picture from an Embedded Resource. That adds the Loaded= and Click= event handlers you see below. I double-click on the surface, then go back and double-click on the button. I use Split Screen View so I can see the XAML being written a the same time. Then, I drag an image on the Page and a Button. I fire up VS2008 and hit File | New Project | WPF Browser Application. NET 3.0 WPF Application, seen above in Firefox) would be more challenging, hence the idea behind WPF Browser Apps. Keep in mind that mine is a silly example, and yes, this one could be done with DHTML, however the Woodgrove Finance Application ( a. Think of XBAPs as ClickOnce applications that never jump out of the browser. This is all still very old-school ISite COM stuff.Īnyway, XBAPs aren't Silverlight, they are the Full. Your application would run - then IE4, methinks - using the Browser as it's Window Frame, much the way Word or Acrobat can open up a document inside the Browser. This reminds me of the year I spent working for Aurum (then a division of Baan) creating a large application using VBPs - ActiveX Documents. Seriously though, it's very easy to deploy apps like this. I put together an incredibly useful and powerful application consisting of a picture of me and a button. NET 3.5 XBAP (XAML Browser App or "WPF Browser Apps") in Firefox, and it works just as advertised.