Welcome to WindowsClient.net | Sign in | Join

Rob Relyea - XAMLified

WPF, Silverlight and XAML

XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)
XamlLogo

On May 20th, 2009, Beta 1 of .NET FX 4 and Visual Studio 2010 will be available for download1. We’re very excited that XAML2009 language features & System.Xaml.dll are now finally available for you to try. We first talked about XAML2009 & System.Xaml.dll at our PDC 2008 talk about XAML in November 2008 (video online). I’ve also shared a few status updates along the way: December, January, February, & March.

Now that you can get the bits, we are very excited to hear your feedback, and we have much to share…

Of course, we continue to be excited about the 8 Benefits of XAML for UI and Beyond and are interested to see where you may find good uses of XAML. The investments we are making in .NET FX 4 and beyond should open up many new scenarios for XAML.

1 If you are an MSDN subscriber, everything was downloadable on May 18th.

Let’s Dive In!

Here is a list of some of the topics we’ll soon explore with you via blog posts, links, and samples:

XAML Users - XAML2009 Language features

Note: To use these new language features in WPF 4, you’ll need to avoid compiling your XAML, and use the existing XamlReader.Load(). XAML compiled to IL+BAML doesn’t support XAML2009 in the .NET 4 timeframe.

Type Developers

  • Learn how your CLR type metadata, attributes, and interfaces affects your XAML capabilities (XamlType/XamlMember)
  • TypeConverters and MarkupExtensions can get additional services (via IServiceProvider.GetService) during XAML load in v4, which will enable many new scenarios.

High Level APIs to Load/Save XAML

  • System.Xaml.dll’s APIs: XamlServices.Load()/.Parse()/.Save()/.Transform() – apis to load and save XAML without any framework specific behaviors.
  • PresentationFramework.dll’s APIs: XamlReader.Load()/XamlWriter.Save() – continues to do WPF specific things due to understanding of DependencyProperty, WPF Navigation, f:Freeze, and more.
  • System.Activities.dll’s API: WorkflowXamlServices.Load()– quickly load WF workflows, including support for DynamicActivities + loading of the appropriate assemblies.

Lower Level APIs in System.Xaml.dll

Around the .NET Framework – a tour of frameworks uses of XAML

Other XAML Scenarios

  • XamlPad – building a better XamlPad (support events, etc…)
  • XamlDOM – showing off a sample DOM inside the XamlT.Pad sample
  • XamlToCode – discussing the XamlToCode tab inside the XamlT.Pad sample
  • Static analysis of XAML – writing an FxCop rule that analyzes XAML (or BAML in next beta)
  • Validation of XAML – using the XamlXmlReader for validation
  • Writing a “WrappingXamlReader”
  • Constraining types/members available in XAML with a custom XamlSchemaContext
  • Write a file format converter to/from XAML
  • Building a new file format/storage mechanism for XAML – Build your own XamlReader/XamlWriter

Post .NET 4 Work

  • WPF MarkupCompiler, BAML, Visual Studio, Blend support for XAML2009
Published Tuesday, May 19, 2009 4:08 PM by Rob_Relyea
Filed under: , , , ,

Comments

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Wednesday, May 20, 2009 4:25 AM

Yes! ... Are expressions there?

# Links da Semana (18-22)@ Wednesday, May 20, 2009 6:12 AM

Apesar de andar muito ocupado nestes últimos dias, com projectos importantes e de carácter importante

# Dew Drop - May 20, 2009 | Alvin Ashcraft's Morning Dew@ Wednesday, May 20, 2009 8:20 AM

Pingback from  Dew Drop - May 20, 2009 | Alvin Ashcraft's Morning Dew

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Wednesday, May 20, 2009 9:29 AM

So, are you saying, you created Xaml2009, but we can't actually use it with VS or Blend until post .NET 4.0?  And are you saying that we can't write applications with it without writing some bootstrapping code, because it currently doesn't compile to BAML + IL?  Can you elaborate please.

by Rob

# Yes, XAML2009 isn't everywhere yet...@ Wednesday, May 20, 2009 11:34 AM

Rob commented on the beta 1 announcement post : "So, are you saying, you created Xaml2009, but we

# A quick analyze of the .NET Fx v4.0 Beta1@ Thursday, May 21, 2009 4:29 AM

Normal 0 21 false false false FR X-NONE X-NONE Let’s have a look to see what the tool NDepend shows

# Channel9: XAML in .NET 4@ Thursday, May 21, 2009 12:17 PM

Channel9! Now that XAML2009 and System.XAML are in your hands , Mike Shim and I visited Adam Kinney to

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Thursday, May 21, 2009 12:37 PM

Ivan-

Are you asking if we support expession in XAML or if Expression Blend works with these new features?

If you use Windows Workflow (WF), they use an Expression engine (based on VB) that allows you to embed expression inside attributes.

Expression Blend doesn't yet have a public version that will run on, or target version 4...but they'll have one eventually.  (I don't know the timeline).

Thanks, Rob

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Thursday, May 21, 2009 4:00 PM

Thanks, i found them (square brackets in WF).

# Channel9: XAML in .NET 4@ Thursday, May 21, 2009 6:34 PM

Channel9! Now that XAML2009 and System.XAML are in your hands , Mike Shim and I visited Adam Kinney to

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Thursday, May 21, 2009 6:43 PM

I am also interested in hearing about the limitations of the new XAML features - could you please elaborate on the BAML load limitations?  Does this mean that we won't be able to use the language features for front-end user controls in VS2010?

# New XAML features in .NET 4.0 Beta 1@ Friday, May 22, 2009 11:48 AM

There's a whole new XAML stack in the recently released beta 1 (download here ) with a bunch of exciting

# WPF Discussion, 090522@ Saturday, May 23, 2009 4:37 AM

I hope you remember the drill; sorry that I missed last week, we had school Subject: ItemsControl and

# List of features to track in WPF4 and the details on beta1@ Thursday, May 28, 2009 5:00 AM

I am late to this  but still wanted to share an “insider view” into the status of “WPF 4” in the

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Sunday, August 02, 2009 10:03 PM

Thanks for this informative post.

I am currently using vs2010 and 4.0 to build a WPF application, and have attempted to use the x:FactoryMethod syntax, I have declared my namespace to import the new xaml schema, but I keep getting compiler error "FactoryMethod does not exist in xml namespace...."

Any ideas?

Thanks

by Adam

# re: XAML2009 and System.Xaml.dll Preview (in .NET FX 4 Beta1)@ Thursday, August 06, 2009 10:25 AM

Adam-

Please read blogs.windowsclient.net/.../yes-xaml2009-isn-t-everywhere-yet.aspx

Thanks, Rob

# RX, CCR, CEP, LinqLite, Coreinfo and More « Tales from a Trading Desk@ Monday, November 02, 2009 2:50 AM

Pingback from  RX, CCR, CEP, LinqLite, Coreinfo and More « Tales from a Trading Desk

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Page view counter