Introduction to XAML Browser Applications (XBAP)
page 5 of 8
by Nihar Ranjan Nayak
Feedback
Average Rating: 
Views (Total / Last 10 Days): 150164/ 225

Creating a sample XBAP Application

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.



View Entire Article

User Comments

Title: Plagarized MSDN Content   
Name: Create your own content
Date: 2013-01-17 8:14:02 AM
Comment:
This page is substantially plagarized from MSDN content, and probably other sources. It is unprofessional to copy other people's content and claim it as your own without citing the sources.
Title: gfhgf   
Name: fghfgh
Date: 2012-10-16 6:27:00 AM
Comment:
gfhgfhgfhghhgh
Title: 2012 NFL jerseys   
Name: NIKE NFL jerseys
Date: 2012-05-20 11:38:06 PM
Comment:
[/pre]Cheap NFL,NBA,MLB,NHL
[url=http://www.jersey2shop.com/]Jerseys From China[/url]
[url=http://www.jersey2shop.com/]2012 nike nfl Jerseys[/url]
[url=http://www.jersey2shop.com/]cheap China Jerseys[/url]
[url=http://www.jersey2shop.com/]Sports Jerseys China[/url]
[url=http://www.jersey2shop.com/NFL-Jerseys-c68/]NFL Jerseys China[/url]
[url=http://www.jersey2shop.com/NBA-Jerseys-c77/]NBA Jerseys China[/url]
NHL Jerseys China
[url=http://www.jersey2shop.com/MLB-Jerseys-c94/]MLB Jerseys China[/url]NFL jerseys For Sale online.All Our Jerseys Are Sewn On and Directly From Chinese Jerseys Factory
[/pre]
[pre]We Are Professional China jerseys Wholesaler
[url=http://www.cheapjersey2store.com/]Wholesale cheap jerseys[/url]Cheap mlb jerseys
[url= http://www.cheapjersey2store.com/]2012 mlb all atar jerseys[/url]
[url= http://www.cheapjersey2store.com/ [/url]Cheap China Wholesael[/url]
[url= http://www.cheapjersey2store.com/]Wholesale jerseys From China[/url]
[url=http://www.cheapjersey2store.com/]2012 nike nfl Jerseys[/url]Free Shipping,Cheap Price,7 Days Deliver
[/pre]
[/pre]
We are professional jerseys manufacturer from china,wholesal
sports [url= http://www.cheapjersey2store.com/]Jerseys From China[/url]
[url=http://www.cheapjersey2store.com/NFL-Jerseys-c68]NFL jerseys China[/url]
[url=http://www.cheapjersey2store.com/NHL-Jerseys-c96/]NHL Jerseys China[/url]
[url=http://www.cheapjersey2store.com/NBA-Jerseys-c77/]NBA Jerseys China[/url]
[url=http://www.cheapjersey2store.com/MLB-Jerseys-c94/]MLB Jerseys China[/url]
[url= http://www.cheapjersey2store.com/]China Jerseys[/url],Free Shipping
[/pre]
[/pre]
We are professional jerseys manufacturer from china,wholesal
sports [url= http://www.jerseycaptain.com/]cheap jerseys sale online [/url]
[url= http://www.jerseycaptain.com/]2012 nike nfl Jerseys[/url]
[url=http://www.jerseycaptain.com/NFL-Jerseys-c68]cheap NFL jerseys China[/url]
[url=http://www.jerseycaptain.com/NHL-Jerseys-c96/]NHL Jerseys C
Title: mr   
Name: omkar
Date: 2012-05-12 9:31:20 AM
Comment:
it says error occured and says restart application
please help me
gamer.boy88@gmail.com
Title: Mr.   
Name: Rubem Rocha
Date: 2012-01-30 8:38:19 AM
Comment:
All the figures are not being displayed.
Title: Software Engg.   
Name: Amit
Date: 2010-10-22 1:18:54 AM
Comment:
Very good article.
Especially Basic differences between XBAP, WPF Standalone and Silverlight

Keep it up.
Title: software Engineer   
Name: Ziaur Rahman
Date: 2010-03-24 7:07:52 AM
Comment:
good. I have liked it.
Title: Nice Article   
Name: Jagz
Date: 2010-03-18 12:33:47 AM
Comment:
Thanks, its really helpful
Title: Mobile Phone Seeker   
Name: Mobile Phones
Date: 2009-12-29 12:15:31 AM
Comment:
Very nice article and I was searching for such an article.
Please write such articles in future also

Thanks
Mobile Phone Seeker
Title: Nice article   
Name: Neetu
Date: 2009-08-26 3:23:46 AM
Comment:
Good explanation but please specify some more details on applying controls on WPF enabled application(StandAlone)
Title: thanks may fold   
Name: bob
Date: 2009-07-09 7:24:29 PM
Comment:
thanks for this great write up on XBAP, i was in a panic state trying to figure out if i could use XBAP on the WEB and this answered my pressing concerns, now i can sleep!

Thanks Nihar and may great things come your way this year!
Title: Mr   
Name: Nihar
Date: 2009-03-18 2:16:51 AM
Comment:
Hello Ithyan,

XBAp apps run in partial trust mode. So they can't use WCF services in .NET framework 3.0. But framework 3.5 has some improvements over 3.0. So in framework 3.5 we can use WCF in partial trust mode for.

Thanks.
Title: Mr   
Name: Ithyan
Date: 2009-03-18 12:29:22 AM
Comment:
hi,

i hope XBAPs can use WCF.

am completley taken aback on seeing this."XBAPs cannot use WCF."
please check.
Title: Mr.   
Name: Satyadeep Kumar
Date: 2009-03-11 5:37:04 AM
Comment:
Nice, but i'm confused about one line in conclusion: "WPF doesn't require the framework"!!!

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-11-12 1:07:57 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search