Saturday, September 04, 2010
 
   
 
Welcome to my site

First let me say thanks for stopping by my site. My name is David Hanson-Graville and I am a IT consultant working in the UK. Let me make it clear, I am passionate about technology and specifically .net and its various forms. I've programmed in a range of langages, but I can say, I am now at my happiest when coding with c#. I hope my blog is an enjoyable & educational read and please feel free to email me at David.Hanson@OnTheBlog.net if you have any questions. 

Silverlight 2 Control Template Browser Minimize
Location: BlogsOnTheBlog    
Posted by: David Hanson Mon, 09 Jun 2008 20:36:37 GMT

After a fairly hectic week I finally had a chance to sit down and have a play with the new Silverlight 2 beta 1 release. I have been waiting a long time for this release as it finally provides Silverlight with some of the key features that have made WPF such a compelling framework to work with.

In order to get to grips with these features, I decided that I would write a simple control template browser that users can access over the web. Control Templates are the default look and feel that are implemented by Silverlight controls. The template browser allows you to choose a control from the side menu and will display the control template in the right had pane. Building this kind of tool is useful for a number of reasons, firstly I hadn’t seen a zero-install implementation and secondly it provides just enough scope for me to assess the new features available. Below is a summary of the areas I have tested as part of this tool.

  • The new control libraries.
  • New flow layout containers such as Grid, StackPanel and Borders.
  • Overriding of control templates
  • Defining styles in the resources section
  • Databinding of styles
  • Data templates & business object bindings
  • .NET Framework support

In writing the control template browser I found that the designer support in visual studio worked well. I would randomly get some error about not being able to attach to the browser process but this was fixed with a quick restart of VS2008.

The controls available as part of Silverlight 2 have the majority of the most commonly used properties, now and then however you will find holes in this which may make you scratch your head.  Generally though I think the team have done a good job. Just one note on controls... there is no ComboBox...Why? Also I couldn’t get the textbox scrollbars to display.

I did find a rather frustrating issue with the fact that I could not use the MergeDictionary class in my XAML to import styles from other resource files. The result is that I had to declare all my styles in the resources at the top of my page. 

Other than these few niggles which have work arounds, I reckon future of Silverlight look bright.  I intend to test the network support in Silverlight in a future blog. But I have snowboarding to do before then!

Links
Source Code
View Silverlight Control Template Browser
Known Issue: Template not loading for TextBox Control

Permalink |  Trackback

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Tweets Minimize
Twitter / LordHanson
  1. LordHanson: Experienced .net dev in sydney for next 5 months if anyone needs me. CV on request just tweet me.

    Published Sun, 29 Aug 2010 05:41:05 +0000 by
  2. LordHanson: Flash on iPad....nice. http://www.tipb.com/2010/07/04/frash-android-flash-ported-ipad/

    Published Sun, 04 Jul 2010 22:07:55 +0000 by
  3. LordHanson: Anyone noticed that when typing on your iPhone it sounds like your holding a gieger counter?

    Published Sun, 04 Jul 2010 22:05:28 +0000 by
  4. LordHanson: Missing wacko's music... What's happened to the album he was working on before he died?

    Published Fri, 25 Jun 2010 23:01:45 +0000 by
  5. LordHanson: New version of Connectify cannot recognise my active Internet connection! Had to roll back to previous version! #fail

    Published Fri, 25 Jun 2010 22:54:54 +0000 by
  6. LordHanson: vuvuzela blowing spoils the world cup! Fact!

    Published Mon, 14 Jun 2010 05:08:43 +0000 by
  7. LordHanson: About http://www.theaustralian.com.au/business/news/us-competition-regulators-to-investigate-apple/story-e6frg90x-1225878779986

    Published Mon, 14 Jun 2010 00:04:45 +0000 by
  8. LordHanson: In the camper van and a storm is coming.....How exciting.

    Published Sun, 25 Apr 2010 04:39:48 +0000 by
  9. LordHanson: My vaio p is doing well while travelling. 3g Internet, HD movies, digital tv, photo editing, wifi router for iPods and much more. Love it

    Published Wed, 10 Mar 2010 10:29:19 +0000 by
  10. LordHanson: Ok so I need to stay techie while away from a computer for a year. Anyone got any ideas.

    Published Mon, 22 Feb 2010 12:31:09 +0000 by
  11. LordHanson: Sitting in YHA Glebe Sydney waiting for the movie night to start

    Published Thu, 18 Feb 2010 08:13:10 +0000 by
  12. LordHanson: Madness today. We only booked our return tickets to bangkok on the wrong day! Luckily we managed to change them!

    Published Wed, 10 Feb 2010 15:54:37 +0000 by
  13. LordHanson: HTML5 the future? http://bit.ly/6yf9Bu

    Published Tue, 09 Feb 2010 13:43:48 +0000 by
  14. LordHanson: Last night in Bangkok! Good fun!

    Published Thu, 04 Feb 2010 18:09:38 +0000 by
  15. LordHanson: @trampussandal Dad? lol

    Published Thu, 04 Feb 2010 05:26:39 +0000 by
  16. LordHanson: Im sitting in a coffee shop in my home town of epsom thinking... Man the day has finally arrived. I can feel the stress lifting.

    Published Mon, 01 Feb 2010 09:05:13 +0000 by
  17. LordHanson: So what excuse will apple use to not allow flash or silverlight to run on the ipad this time I wonder.

    Published Fri, 29 Jan 2010 19:07:46 +0000 by
  18. LordHanson: Yay just manage to upgrade from vista ultimate to windows 7 enterprise by using the registry hack trick. No reinstalls.

    Published Wed, 27 Jan 2010 07:18:07 +0000 by
  19. LordHanson: @swhelband Sure am...http://bit.ly/aZ6Xvd

    Published Tue, 26 Jan 2010 19:05:18 +0000 by
  20. LordHanson: I finished work today in prep for travelling. I must admit as i left the office i felt a little emotional. Sign of a good job with great ...

    Published Tue, 26 Jan 2010 17:48:49 +0000 by
Print  
Archive Minimize
Print  
Contact me Minimize
Print  
Microsoft Certs Minimize







Print  
Silverlight News Minimize
Silverlight - Google News
  1. Microsoft buffs Silverlight for HTML5 video contest - Register

    Published Thu, 02 Sep 2010 20:01:56 GMT+00:00 by
  2. Download Silverlight 4 SDK and Tools for Visual Studio 2010 - Softpedia

    Published Fri, 03 Sep 2010 10:07:34 GMT+00:00 by
  3. Microsoft: Silverlight capabilities exceed those of HTML5 - PC World Magazine

    Published Sat, 04 Sep 2010 05:44:51 GMT+00:00 by
  4. Wanna scan the universe? Just open Windows - Economic Times

    Published Sat, 04 Sep 2010 11:58:46 GMT+00:00 by
  5. Microsoft releases Windows Phone 7 to manufacturing - Wikinews

    Published Sat, 04 Sep 2010 03:33:21 GMT+00:00 by
  6. Raymark Announces Next Generation Of Retail Software Solutions Developed On ... - Retail Solutions Online (press release)

    Published Fri, 03 Sep 2010 05:00:28 GMT+00:00 by
  7. Microsoft issues record Patch Tuesday updates - ZDNet UK

    Published Wed, 11 Aug 2010 08:42:04 GMT+00:00 by
  8. Microsoft trips on Visual Studio Lightswitch - Register

    Published Thu, 26 Aug 2010 05:03:07 GMT+00:00 by
  9. Silverlight 4 and Silverlight 3 Documentation Overlapping - Softpedia

    Published Tue, 24 Aug 2010 08:23:26 GMT+00:00 by
  10. Microsoft: Silverlight still has a future in an HTML 5 world - ZDNet (blog)

    Published Thu, 02 Sep 2010 18:07:26 GMT+00:00 by
Print