Even a chimp can write code

Thursday, May 03, 2007

Silverlight UI Controls

Update [Apr 2009]: The post below is now obsolete. There is now a great ecosystem of UI controls for Silverlight. You can start with the Silverlight Toolkit, a Microsoft provided collection of Silverlight controls, components and utilities made available for your development with a permissive license (MSPL). Besides, there are excellent controls from ComponentOne, Telerik, Infragistics etc. There's also some good documentation on Silverlight Controls on MSDN.

-----

If you've played with Microsoft Silverlight 1.0 Beta or 1.1 Alpha bits, you've no doubt noticed that while there's Canvas, TextBlock and other such controls, there is no Button or ListBox or even layout elements like StackPanel or Grid. Rest assured, your UI development needs are always on our mind.

If you download the Silverlight 1.1 Alpha SDK, you'll see a UI controls package in there. You didn't think we'd leave you in the lurch, did you? Although it is very easy to whip up a Button control with XAML and some code in Silverlight, that detracts from your app building. To address this, we've released a modest set of controls in the Silverlight UI Controls package. These include:

  • Button
  • ScrollBar
  • ScrollViewer
  • Slider
  • ListBox

Also included are a couple primitives like RepeatButton, Thumb and GripThumb.

All of the controls in that package are managed code controls i.e. they rely on Silverlight 1.1 Alpha and the CLR and Silverlight framework in it.

These controls currently sport the Silverlight "Dawn" look and feel. We're releasing source code for these controls so you can modify and customize them as appropriate. There is a readme file with additional information and the code is peppered with comments, all which the agile diehards are free to ignore, 'cause the code is the documentation. The control behavior is in C# code-behind files, while the control templates, i.e. the visual aspects governing look and feel, are in XAML markup files. Another example of separating UI from behavior, as architecture astronauts have been telling us since the dawn of time.

Silverlight 1.1 Alpha SDK - UI Controls

Controls such as ScrollBar, ScrollViewer, ListBox and Slider are composed of other controls. We picked this mix because it accentuates the diversity of the control set and allows you - the designer or developer - to look at the source code and understand the Silverlight framework, the inter-dependencies between controls, and not to mention, the quirks in the control set arising from some features being absent in the 1.1 Alpha.

Please use these controls in your applications targeting Silverlight 1.1 Alpha. In fact, it should be pretty simple to take the XAML pieces, tie in some JavaScript and have all of this run on 1.0 Beta. But I'll leave that to the community.

As always, direct comments and bug reports on the UI controls to the Silverlight Forums. If you have questions about the control roadmap or other considerations made while developing this set, drop me a line here.

Labels: , ,

Email this | Bookmark this

Monday, April 30, 2007

Meet Silverlight

Today at the Mix 07 conference, Microsoft is announcing a couple preview releases of Silverlight. Silverlight v1.0 Beta is the next in series to the two community technology previews (CTPs) released with the codename "WPF/E".

Silverlight v1.1 Alpha is a sneak peek at some future functionality.

While it is unusual to have two separate pre-release trains for a product, we believe that there's nothing like real code and real samples to demonstrate our feature set, roadmap and intent. The team has been aggressively cranking out code, delivering key features with tight deadlines. Please download the builds, play with them, build apps and tell us what you think.

Here's an incomplete list of new features or enhancements in Silverlight 1.0 Beta:
  • VideoBrush - Used to paint shapes and text with video content.
  • WMS streaming support
  • Media markers / script command support
  • Playlist support (ASX subset)
  • Improved video playback smoothness
  • Cleaned-up animation model
    • Animations now go in a Canvas.Resources block

  • Support for downloading and unpacking .zip files
  • Support for cross-domain downloads
  • Improved text rendering
  • Ink support
  • Improved javascript programming
    • Enum support
    • Better error handling
    • Support for delegates as event handlers
    • Sandboxed javascript mode
  • Namescope support
  • New properties for UI manipulation:
    • Z-Index
    • Visibility
    • IsHitTestVisible
  • Downloading fonts for TextBlock


Silverlight v1.1 Alpha contains a flavor of .NET, with support for languages such as C# and VB and dynamic languages such as Python, Ruby, VBx etc. The v1.1 Alpha build is a superset that includes the functionality delivered in v1.0 Beta. Unlike v1.0 Beta, the v1.1 Alpha does not give you a Go Live license. We expect that you'll evaluate and explore it and give us feedback on what you don't like and what you'd like to see more of. Get involved. We're listening.

Get Silverlight now!

Labels: , ,

Email this | Bookmark this

Thursday, April 19, 2007

What does Silverlight mean to you?

Mike Harsh, fellow program manager on the team and all-round great guy, was manning the Silverlight booth at the NAB Show, doing demos and talking to customers. He says: "I have never been involved with any technology that has this level of excitement and interest, and I’ve never given demos to so many people who’ve walked away with a smile on their faces. After seeing the demos it sinks in very quickly that Silverlight will let them do incredible things with their existing Windows Media assets using all their existing delivery infrastructure." Read that last statement carefully. It touches on what we think is the essence of Silverlight today.

Dave Wolf from Cynergy says "[The] entire RIA market just became real and it is about to explode, and it is thanks in large part to Microsoft and Silverlight... Microsoft just justified and legitimized RIA. That is HUGE." I think Dave makes a great point. With a player like Microsoft advocating the agenda, you will see the company's traditional audience of developers and decision makers in enterprises, take RIAs more seriously than they have. This adds to the momentum Adobe (and previously Macromedia) have already garnered. I think with companies like Adobe and Microsoft at the helm, we're at the beginnings of the RIA renaissance.

In that post, Dave also talks about the Microsoft penchant for project code names, but as an insider, I do not see that these names mean that much. Sure they're placeholders on specs, slide decks, share points and distribution list aliases. But that's about it. We laugh when the press and blogosphere influentials weave sinister stories out of these. What matters is action, not name. For clarity, "Sparkle" was never the code name for Silverlight (as some have suggested): it was "Jolt" to the development team and "WPF/E" to everybody else. "Sparkle" was the code name for Expression Blend, the design surface for WPF. I've lost count of the number of times I've chuckled when the tech trade press called Sparkle the Flash-killer. Yeah, like Picasa is the Photoshop killer. Can we please stop with all the killer references?

All of this finally brings me to the core point I'm trying to make in this post. That is: don't believe the hype and the FUD. We're going to announce more details on Silverlight features at the Mix 07 conference. Pick up our next build (coming soon to microsoft.com/silverlight), read the docs, play with the bits and the tools, ask questions on the Silverlight forums, engage with the community and make up your own mind. And do let us know what you think. I'll trade a million articles in tech rags for one post on the forums or your blog where you candidly tell me and the team what we're doing wrong and where you'd like to see us go. Our plans are not set in stone. Silverlight is still pre-release software and there's much we can add and change in this and future versions. My team and I are not looking for toothy grins and thumbs-up signs. We're looking for honest critiques and feature requests. Got any?

PS: I cannot be at Mix 07 this year. I'll be taking it easy that week, but Joe, Vivek, Nick, Mike and others from the team will be on hand to answer questions.

Labels: , , ,

Email this | Bookmark this

Monday, April 16, 2007

Silverlight Trivia

The name

We've been dropping little hints about the name for months now - the MIME type for the browser plug-in in the Feb CTP was application/ag-plugin and the script instantiation used a new agHost(...) call. Ag  (short for Argentum) is the symbol for Silver in Mendeleev's Periodic Table of Chemical Elements.


Silver
47
Ag
107.8682


 

The .NET connection

Yes, Silverlight extends the reach of the CLR and .NET Framework to other platforms like the Mac! Details coming soon.

Labels: , , , ,

Email this | Bookmark this

Whatever happened to "WPF/E"?

You can stop calling it "WPF/E" now. This morning, Microsoft announces Microsoft Silverlight, a new cross-browser, cross-platform technology for interactive media and rich applications. This is the technology formerly codenamed "WPF/E".
Microsoft Silverlight logo
I've been working on Silverlight features for a few months now and am excited about today's public announcement at the NAB Conference in Las Vegas, NV. At the conference, Microsoft will reveal it's brand and announce partner support for Silverlight. Then at the Mix 07 conference on April 30th, the company will unveil and discuss the breadth of the Silverlight developer and designer ecosystem.

We live in interesting times.

Labels: ,

Email this | Bookmark this

Saturday, March 17, 2007

Software Branding

I was pleased to see the updated Windows Vista User Experience Guidelines introduce a section on Software Branding. I firmly believe the secret sauce behind every successful software application is the emotional chord it strikes in the end user. Too often we, the sausage makers, focus too much on the technical aspects and too little on the emotional aspect of the software we build.

For something that is frequently overlooked or gotten wrong, this article on software branding is chock full of common sense. Although the examples use Windows artifacts, the guidelines apply very broadly to software we all create.

On another note, I am happy to see this idea dawn on folks across Microsoft. Now if we can strike the right balance between the whole technical v/s visceral v/s behavioral v/s reflective aspects, it'll portend good things to come. The innovations in the Shell in Windows Vista, and platforms such as WPF and WPF/E will surely help.

Labels: , , , , , ,

Email this | Bookmark this

Tuesday, February 27, 2007

WPF/E vs DHTML vs Flash vs WPF performance test

Rob sent a link to this post by Alexey Gavrilov who did some benchmarking on a variety of client technologies: DHTML, Flash, WPF/E and WPF. Alexey summarizes the test results thus:

Here are results I got testing with 16 [animated bouncing] balls on my Pentium M 1.7 laptop:

Browser DHTML Flex WPF/e WPF
IE 6.0 56 61 84 99
Firefox 2.0.0.1 55 52 58 -
Opera 9.01 94 50 - -
[...] WPF/e is much faster in IE than in Firefox, which seems equally slow for all three tests. The expected result is that WPF runs faster than anything else. The unexpected is that WPF/e is faster than Flash despite the fact that it’s been in the market for years.

Since the tests focus on a narrow animation sample, one would be cautious to put too much into the results. Regardless, the findings are very interesting. Alexey has posted sources for the tests so you can run them on your own machine.

Labels: , ,

Email this | Bookmark this

Friday, February 02, 2007

Windows Vista in a browser using WPF/E

From the Microsoft Slovenia team with assistance from local agency Renderspace, here's a Windows Vista demo using WPF/E. Very cool! Requires Feb 2007 CTP of WPF/E which went live yesterday.

Labels: , ,

Email this | Bookmark this