Step 1
Start Visual Studio 2008. Click File -> New ->
Project. Select the Windows item inside Visual C#. Then choose the WPF
Browser Application template and create a project. This template is
basically used to create XBAP applications.
Step 2
Inside solution explorer double click the Page1.xaml. Paste
this line between the <Grid></Grid>.
<TextBlock Text="This is my first XBAP application." Background="LightGray"
Foreground="DarkOrchid"></TextBlock>
Then build your project.
Step 3
Next go to your Debug folder of
your Application. Double click on the .XBAP file to run it. It will open in a
browser window. If your default browser is not IE or FF then copy the Url from
other browser window and paste it in your IE address bar. (because XBAPs run
only in IE and FF) You will see the following output. If you get a “Trust
Not Granted” error then you will need to disable the PopUp blocker in your
browser.