Saturday, March 25, 2006

Using Xaml to Represent Objects

Since most of the WinFX (.NET) world is going to declarative programming, I think it would be wise for us API designers to starting thinking the same way. Xaml is really our key to that. We don't need to have our own XML dialect to provide a declarative model to developers, we just need to realize that Xaml isn't just a markup language for graphical controls... nor is it solely for Microsoft created frameworks (i.e. WPF, WWF). We too can tap into the beauty of Xaml by simply understanding how simple it is.



In this video I demonstrate how to create a simple data-bound WPF application using Xaml using a C# class to feed the data. Then I alter the WPF application to be purely in Xaml... even the data binding to LLBLGen.



This video is really just a proof of concept of something that I personally consider very experimental at this stage. In the future however, I do expect most WinFX coding to go hand in hand with declarative programming. In fact, you can already see how ASP.NET, Atlas, WPF, WCF (the config file), and WWF are strongly declarative based. Since Xaml is not much more than an XML representation of .NET objects, exposing an API shouldn't be that difficult for us. Most of the time I'm sure a simple framework built with SOA principles in mind should be OK.



Here's the link to download the video:




Saturday, March 18, 2006

March 2006 WCF Resources

Heres just an update on the popular resources on WCF on the web.



Some links worth looking at...




Here's a list of the video Mike has up at the MSDN Nuggets website (link above).



  • "Hello World"

  • Type Serialization

  • DataContract Serialization

  • Typed and Untyped Messages

  • Bindings

  • Message Encoding

  • Message Patterns

  • Sessions

  • Instancing

  • Concurrency

  • Exceptions

  • Transactions

  • HTTPS Transport Security

  • Message Security

  • Authorisation

  • Auditing