Designing for Silverlight.

8. March 2011 17:23

When developing for Silverlight or WPF based applications, like anything else, there is a lot of tools and information out there to assist you in the development process.   Microsoft has made quite a few tools to help us in these endevours, among those tools, that' I'd like to discuss, is Expression Design, and Expression Blend.

 

Some people would say "well duh", obviously you can use those, and talk about them in great detail.  For some people it's not quite so obvious where to start at, and when.  Perhaps they stumbled upon a tutorial that shows them how to perform one function in Blend, and then another tutorial showing the same thing in Visual Studios.   None of these even mention bothering to use Expression Design....   so when and why would we use one tool over another.

 

Expression Blend is a powerful tool, and a lot of tutorials will lead you toward it, but what is the tool essentially? To me, it's a layout manager, control designer, and animation studio.  That's my own personal definition of it.  Can you do more then that in it? Yes, but is it ideal for more then that? In my opinion, not really.  When I'm writing complicated code, I'd prefer to use visual studios. I'm not going to define a C# double animation in Expression blend, I'm going to code it in VS.  But will I write a storyboard or state in Expression Blend? yes, preferably every time if I can pull it off.

 

So, where does design come in? Many of you may know, that you can export design as a silverlight canvas or WPF canvas.  What does this accomplish for you?  A lot if you really take an open-minded look to it.  The drawing tools in design are obviously superior to that of Blend, and essentially whatever you can draw in design can be exported to a canvas.

 

So lets actually think about leveraging the design abilities of Expression design and draw UI that throw out the normal squares, rectangles and circles....Lets make some crazy shapes that bring us interfaces that break the norm.   And when designing these interfaces think of the animations you can use against them.  You can draw a bunch of wonky shapes in expression design..apply gradients.....whatever you can think of, and then export these objects as a canvas...open it in expression blend, and have an animation field day with them.

So great, were using design to make really unique objects that were exporting, and then animating in blend.  What else can we do with Design and the canvas export?  Well what is XAML in it's basic form? It's namespaced XML.  You can take Linq to Xml and iterate through any XAML so long as you load your namespaces correclty....Linq to XML and XAML will be saved for another blog post in the future.

Another thing to let your mind rumble on.... If I'm using Design to make objects, which in the end have paths and coordinates, and I"m parsing it with Linq to XML, what can I do with those path objects?  Think Sql 2008 Geomertry types...and equating images to a database....yeah more on that in the future. 

 

Starting to Blog

3. March 2011 22:36

OK, here it is, a blog. I've finally decided to give it a whirl and start putting my concepts to the virtual paper we call the web.  I'm .NET programmer at heart, but of course, like all programmers, I dabble in a lot of different things.   My guess is that eventually I'll post a few helpful tidbits on this blog that might help another programmer through a tuff time.  Or even better, I'll post how to do something in some horrendous manner, and it'll bring all the village programmers out with their torch and pitchfork. 

I'd like to say I'll do my best not to delete posts or comments, but who knows.  I'm guessing that it'll take awhile for anyone to even see this site. A bit more info about myself, I've been programming for a questionable amount of years.  Some of the things I've done, do and will post on are:

  • SSRS, SSAS, SSMS, SSIS, and any other things that make you sound like a snake.
  • Sharepoint 2007...a more recent venture.  Wish I could say it was 2010
  • Silverlight since the 2.0 days.. 1.0 didn't win my attention.
  • Windows Phone 7, nothing on the market yet, but soonish.
  • XNA, fun stuff.
  • C# and VB.Net I prefer C# though and most of my code will be in C#.
  • WCF... get your bindings warmed up.
  • WPF
  • Expression Blend, Sketchflow, Web, Design, Encoder...and bears oh my.
  • Office 2007,2010
  • Ancient technologies like 1.1, VB6.. I'll avoid these like the plague but they are none the less a part of the arsenal.

I'm sure I'll chat about other things I do, eventually.  I consider myself to be long winded at times.  Fun Fun.  So if your reading this, welcome to the site, I probably sent you the link myself.

About the author

My name is Brian, I'm A .NET programmer for Hard Rock. Causing trouble one line of code at a time.

Month List