Posted By: Adam Kinney | Sep 6th, 2005 @ 5:00 PM | 53,288 Views | 22 Comments
In this screencast, Tim Sneath shows with a quick examples how the XAML feature of Windows Presentation Foundation (formerly codenamed “Avalon”) allows you to build UI that integrates 2D, media and text using an XML declarative language.
Tag: WPF
Media Downloads:
Rating:
1
0
Hi Manip, you should be able to click on the button in the bottom-right hand corner to open it in WMP. Once loaded, you can simply do File / Save As... to copy it onto your disk.
No download on a screencast?

Very impressive stuff... VERY impressive.  Very good screencast. Would it be possible to get one showing us how, for example, you would set text using C#?

Two other questions -- Why are strings inconsistent in XAML? Some strings are contained within " " - "text" and others between tags <A> Text </A>; why not pick one or the other?

Just because I'm curious, could you have your typed text follow a curve around (see WordArt)?
I did some editing above.  I am aware that I can save it using WMP; however the reason why I like the downloads is that they are in higher quality... But the quality didn't hurt this particular video too much. Smiley
bonk
bonk
Ich bin der Wurstfachverkäuferin !
I most other browsers but IE you can rightclick that button and do "save traget as". At least in opera and firefox.
In response to your WordArt question, you can do some insanely cool stuff with text. Whilst you can't exactly do what you're after directly, you can use the FormattedText.BuildGeometry() method to turn any formatted text into a vector geometry, and once you've done that, you can skew it, transform it, reshape it or anything else you want. We're all going to be able to create some awesome effects using this capability.

As far as the differing styles of XAML are concerned, it is at least consistent - you have both choices. For example, you can write:
   <Button Content="OK" />
or
   <Button>OK</Button>

It's just that the default property for Button is Content, hence you can embed the text within the element. We could only support the former choice, but the latter allows for a more natural syntax, I think. Does that make sense?
Harlequin
Harlequin
http://twitter.c​om/TrueHarlequin
I'll ask the question I've asked before since the evangelist is here Smiley

Will Avalon be helpful to web developers? A'la a web-based plugin, etc etc. Or is it app only?
Harlequin
Harlequin
http://twitter.c​om/TrueHarlequin
Found my own answer I guess with Avalon Express. Guessing it needs IE7/Vista?
I do not recall avalon Express applications needing IE 7 or Vista for that matter. If you had VS 2k5 and beta 1 you can make express applications as far as I know.
That's right - you get Avalon Express applications on any machine with IE 6 or above and the WinFX Runtime Components installed. You'll get the very best experience on IE 7, since we weren't able to touch the IE 6 bits to integrate better. On IE 7, for instance, the back / forward buttons in the browser can be used to control the navigation model within an Avalon app. Avalon Express applications can be hosted as the full contents of a browser window, or alternatively within an IFRAME if you want to use Avalon as if it were a plug-in.

The way is also open for other browsers to host Avalon Express, incidentally - they just need to host our container.

Expect to see a whitepaper on Avalon Express published on MSDN in the next week by Karen Corby, the Program Manager for this area.
Microsoft Communities