Web Toys

Discussion of all kinds of web technologies

About the author

Bret Patterson.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

WPF Challenge to the Experts...

I have a simple challenge for all the WPF experts out there...

 

Pretend that XAML and XBAPS were a replacement for HTML and attempt to create a website purely using:

  1. XBAPS
  2. Loose Xaml
  3. Loose image files referenced from Xbaps/Xaml.
  4. Rest and Webservice style server side handlers for post/get type interaction between the client/server.

Basic website design guidelines would be something like:

  • Share images as much as possible to minimize download times
  • Provide as much content as you possibly can in an indexable format (IE loose Xaml etc).
  • Make small changes not require large deployments or large downloads

 

You might ask yourself why you would do this, after all WPF/XAML only works on windows platforms and in Internet Explorer. Some might ask why I don't just make this challenge for Silverlight instead.

While I believe Silverlight to be an incredibly powerful up and coming technology, I personally see it more as a competitor to flash and not for HTML. Which basically means it's going to be used for:

  1. Advertisements.
  2. Rich interactive applications (well by current web standards it's mostly going to make things easier and open a few new possibilities).
  3. Small standalone applications

However there are some of us our there, myself at least, that are aching for a HTML replacement technology. HTML is ancient by technology standards. HTML has really come a long way since the revolutionary 1.0 version, yet it's still a really clunky way to develop interactive applications and publicize content.

Currently XAML/XBAPS are not cross platform and hence will not be a serious competitor for HTML in the near future. However, Silverlight has proven that this is not a necessity and that in the foreseeable future this could change through the implementation of a Mono based WPF implementation that brings WPF/Xbaps to the cross-platform world.

Try the above challenge, I think you'll be both pleasantly surprised how nice it is to develop web content in XAML versus html, however you will be surprised at how unexplainably hard it still is.

Few issues to give you a taste of the challenges:

Pretend your website is organized something like:

.
./images
./actions/
./assemblies/
./xaml/
..

Scenario: Try and reference loose images on your website from your xbaps xaml.

<Image Source="images/logo.png"/>

Problem: You will notice that it doesn't work because the xbap only searches it's resources and assembly!

Solution: You need to use the syntax: "pack://siteoforigin:,,,/images/logo.png"

Scenario: You've directed the user to a loose xaml file index.xaml and your website gets busy and your webserver returns an error accessing an Image that xaml file loads.

Problem: An error occurs and Nothing is rendered.

Solution:  You must compile your web pages to xbaps in order to handle ANY errors, even simple url not available for resources. There is no silent failure for certain scenarios. Imagine if a website failed to load if even one of the spacer images wasn't available!

There are many more issues which I've noticed so far, as I've personally undertaken the challenge myself to build an entire website using zero html, 100% xbaps, loose Xaml and server side services.

Once I get a bit more content on the website I'll publish it's URL...

Current major issuing I'm pursuing is:

How to load DLL assemblies dynamically and then loading loose Xaml files that bind to event handlers in those assemblies.


Posted by bpatters on Wednesday, July 11, 2007 6:06 PM
Permalink | Comments (17) | Post RSSRSS comment feed

Comments

Marvin Braunsdorf United States

Saturday, March 27, 2010 1:43 PM

Marvin Braunsdorf

This is a good article, I was wondering if I could use this blog on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

notebook United States

Tuesday, March 30, 2010 4:18 PM

notebook

Great blog here. Keep it up! Please try to include more information if possible.

Tameka Dreyfus United States

Friday, April 23, 2010 12:07 PM

Tameka Dreyfus

I don't agree with everything in this write-up, but you do make some very good points. Im very interested in this topic and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.

Ammie Heugel United States

Friday, April 23, 2010 12:57 PM

Ammie Heugel

This is a good post, I was wondering if I could use this post on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

Page Dais United States

Friday, April 23, 2010 2:00 PM

Page Dais

Excellent piece of writing, this is very similar to a site that I have. Please check it out sometime and feel free to leave me a comenet on it and tell me what you think. I'm always looking for feedback.

Whitney Gencarelli United States

Monday, April 26, 2010 6:18 PM

Whitney Gencarelli

I'm glad I found this blog, I couldnt get any knowledge on this matter prior to. I also run a site and if you wish to ever interested in doing a bit of visitor writing for me if possible feel free to let me know, im always look for people to check out my website. Please stop by and leave a comment sometime!

Masako Wreyford United States

Monday, April 26, 2010 7:11 PM

Masako Wreyford

I'm glad I located this blog page, I couldnt discover any info on this subject matter prior to. I also operate a website and for anyone who is ever serious in doing a bit of visitor writing for me you should feel free to let me know, im always look for people to check out my blog page. Please stop by and leave a comment sometime!

Gale Casgrove United States

Monday, April 26, 2010 8:25 PM

Gale Casgrove

I don't agree with everything in this summary, but you do make some very good points. Im very interested in this matter and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.

bum marketing United States

Tuesday, April 27, 2010 10:12 PM

bum marketing

maybe you can help me get my blog set up?

bum marketing United States

Tuesday, April 27, 2010 10:12 PM

bum marketing

i know i'm a little off topic, but i just wanted to say i like the layout of your blog. i'm new to the blogegine platform, so any advice on getting my blog looking nice would be appreciated.

Wendy Argentina

Sunday, May 02, 2010 9:09 AM

Wendy

Just want to say your post is striking. The clarity in your post is simply striking and i can take for granted you are an expert on this subject.
Well with your permission allow me to grab your rss feed to keep up to date with forthcoming post

Mindy Principality of Monaco

Thursday, May 06, 2010 10:40 PM

Mindy

My mom told me not to waste my time looking for an article about this subject but I found it anyway.

real estate cms opensource Republic of the Philippines

Thursday, May 13, 2010 2:56 AM

real estate cms opensource

Since i stumbled on this excellent blog post whilst searching through the internet. Actually amazing, merely because search rankings can show pretty aged findings yet this blog is actually up-to-date! At any rate, incredibly educational, particularly since this is not always an item many individuals commonly write some thing useful with regards to. thanks and will track back Laters.

Firming Body Lotion Maldives

Saturday, May 22, 2010 9:36 PM

Firming Body Lotion

I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.

Tu Demery United States

Thursday, June 03, 2010 10:21 PM

Tu Demery

I'm glad I discovered this site, I couldnt locate any info on this subject before. Also manage a niche site and if you are ever serious in doing some guest writing for me make sure you feel free to let me know, im always look for people to check out my weblog. Please stop by and leave a comment sometime!

top brampton real estate agents United States

Tuesday, June 08, 2010 12:20 AM

top brampton real estate agents

Thanks for this amazing article. I am refreshed after reading this. Thank you!

Alejandro Sylvester United States

Sunday, June 20, 2010 1:52 AM

Alejandro Sylvester

Quite interesting blog post.  Your own blog is rather quickly turning out to be one of my favorites.

Add comment


(Will show your Gravatar icon)

  Country flag


  • Comment
  • Preview
Loading