So I was going through my archives here and am starting to clean out some OT posts and general nothing posts in preperation for the move to my personal domain. I came across an old post about, at the time, was possibly going to be a new XML based language from MS. Could this be XAML? Maybe or maybe not. But either way I thought it was cool at the time and so I whipped up some fake code:
<form name="Demo X#"> <button name="btnOk" position="200px; 200px" size="100px; 20px" onClick="fnc_SayHello()"/> </form> <function name="fnc_SayHello()"> <msgBox value="Hello World" buttons="OkCancel" /> </function> If this was XAML then this is what it would look like:
<DockPanel xmlns="http://schemas.microsoft.com/2003/xaml" xmlns:def="Definition"> <Button DockPanel.Dock="top" Height="100px" Width="20px" Id="btnOk" Click="fnc_SayHello">Click Me!</Button> <def:Code> <![CDATA[ Sub fnc_SayHello(ByVal Sender As Object, ByVal args As MSAvalon.Windows.Controls.ClickEventArgs) MessageBox.Show("Hello World!") End Sub ]]> </def:Code> </DockPanel>
I thought that was cool. I wonder why I didn't think about intermixing real code into the equation. I've been taking a keen interest in XAML these past few days and hope to dig more into over the holiday season. Who better to learn a declaritive language like XAML then a Web developer?
.:: currently rockin' out to: I Won't Be Home For Christmas - Blink 182 (3:15) ::.