Developing For. NET My first real WPF and Blend 2 application

Twitter ButtonGoogle+ ButtonFacebook ButtonPinterest Button

Developing For. NET My first real WPF and Blend 2 application


I’ve been knowledgeable about WPF since 2006 and the release of C# 3.0, and I’ve had Expression Suite installed for almost a year december. While I’ve toyed with it every now and then, i’ve never ever dedicated the full time and energy essential to actually commence to become proficient.

But, since final week’s Silverlight 2.0 launch, i’ve been burying myself once more in learning brand new technologies. At long last made a decision to just take the plunge, and so I installed Silverlight 2.0, the Visual Studio updates, and upgraded to Expression Suite 2 SP1. A couple was spent by me of times dealing with ScottGu’s tutorials plus some others on We then followed along and built the examples, some in artistic Studio plus some in Blend.

Many of these have been in existence for a time, therefore I’m maybe not claiming any sort of top rated material right right here.

The things I desired to do was to share a number of the insights I’ve had in attempting this task.

What’s the big deal

XAML marks a sea improvement in how user interfaces are developed. The result of XAML is. NET objects, still and thus they could be produced and handled programmaticaly, however the capability to merely explain what you would like is extremely appealing. For a time that is long I didn’t like XAML it self, plus one of my reasons behind placing down learning WPF ended up being that i desired to attend until something like Blend made all XAML connection obsolete. After diving in for the couple of days, we not any longer believe that means, but I’ll share more info on that later on.

Just just exactly What actually makes all of this therefore appealing could be the capacity to do fundamentally whatever we can see right now for an screen. More to the point, I’m able to take action without a lot of hand coded control drawing, something we never ever liked doing within the beginning. The behavior of the control undoubtedly is split from the presentation, as well as the presentation could be changed or replaced in every quantity of means. Simply put, you can easily achieve some pretty cool effects by having an effort that is reasonably small.

Artistic Studio or Blend?

I’ve been having an ongoing discussion with a buddy of mine at RVNUG in regards to the effectiveness of composing WPF applications within artistic Studio.

Having seen some demonstrations along with some training on Blend, I happened to be staunchly in the Blend corner about this one. Although you can drag and drop settings in artistic Studio, it requires a lot of fingers on XAML coding to obtain any other thing more compared to a rudimentary window ready to go. When I talked about formerly, after seeing some XAML presentations i must say i desired to avoid that up to feasible, that is the thing that makes Blend therefore interesting.

But, having been through ScottGu’s Silverlight guide and building a credit card applicatoin in artistic Studio, We have an improved admiration for this now. A very important factor i actually do like about utilizing artistic Studio is the fact that it really is keyboard centric. As being a classic midrange designer We have constantly shied far from utilizing the mouse whenever possible, therefore it appeals to my keyboard-philia. Not to mention, Intellisense continues to be the killer function and makes it way more palatable. Additionally, as a practiced and grizzled internet designer whom nevertheless likes the sporadic plunge into VI and Notepad, it just took a while with XAML to feel at ease using what ended up being taking place. Anybody acquainted with XHTML and CSS should find XAML totally doable. It really is, needless to say, much more complex, with many choices and quirks, however it is territory that is still familiar.

Now, all having said that, we still prefer Blend 5 to at least one over Visual Studio for Visual XAML development. I’ve only encounter some things that i really couldn’t accomplish effortlessly through Blend, and I’m new enough to it that We still chalk it as much as just not understanding the device sufficiently. Using and developing designs is nevertheless one of these brilliant areas: we thus far have never determined just how to do them in Blend, therefore I revert to XAML editing.

Which brings me personally to my concern for the “Should I use Visual Studio or Blend? Time” The answer is a resounding “both! ” OK, I’m yes you saw this one coming, but I want to explain my place. That you are going to use Visual Studio if you are a developer, there is no question. In the end, its our bread and butter, and all sorts of the genuine rule will nevertheless be developed inside our beloved IDE. But creating severe WPF solutions in artistic Studio would too be far painful, despite having great Intellisense support. You can find merely way too many choices to need to code them by hand.

It reminds me of my first Windows application: a Java Swing application that I had written in Wordpad. Trust in me, the pain sensation of that experience made me personally immediately recognize the worthiness of artistic Studio and it is mainly in charge of my change to Microsoft technologies. For a passing fancy purchase, right when I saw Blend we knew that this is the device we had a need to design good WPF applications. Therefore, for design and Visual Tree administration, usage Blend. You think you must solve using XAML editing, switch over to Visual Studio and take advantage of Intellisense, which Blend does not have when you find a problem that.


A few things thus far have actually jumped away at me personally. While Blend and artistic Studio do a fairly good work of maintaining one another in synch, you will find a few problems.

The very first problem that is real had was at including current projects to my solution in Visual Studio.

I began my solution in Visual Studio then launched it in Blend to get results regarding the design. Later on into the session that is same we went back again to artistic Studio and added a few jobs. Now so I followed one of the online tutorials but no joy that I had some CLR objects to work with, I wanted to try Data Binding. Wet does not make a difference just what used to do, i possibly could maybe not get Blend to get the objects. Every time I attempted, we received a multitude of “file could never be positioned” errors. Finally, we restarted Blend when we started my solution, there the missing objects had been.

2nd, there were many times whenever I’m perhaps not sure i will be being precisely prompted to reload. I possibly could be imagining it, but i’m pretty highly that i’ve made alterations in one without having to be prompted by the other to reload them. Maybe this might be only a matter of timing Saves.


Well, I don’t obviously have any at the time of yet. I really do believe that a large amount of designers are likely to struggle contrary to the designer learning bend, yours certainly included. But i believe within the long haul we will likely to be definitely better down. To date, i will be happy with my efforts. I love the blend of resources the 2 applications offer me personally, and I also amd getting ultimately more comfortable in determining which to utilize for many situations.

I’m not quite prepared for the tutorial series, but i shall attempt to share several of my learning to you all as I get. For the time being, try it out your self and inform us everything you think. Happy Coding!