[Mono-list] XAML: Application Markup Language
Miguel de Icaza
miguel@ximian.com
04 Nov 2003 10:22:21 -0500
Hello,
> I just stumbled upon the msdn page of Longhorn XAML or Applications
> Markup Language, a XUL lookalike. Is there any support for this planned
> in mono?
Eventually, yes. The Xaml pre-processor is relatively simple to
implement, the trick is that to get anything useful out of it, you
really need a large class library implementation.
Elements are mapped to classes, and attributes to properties of the
instance, and code is passed on through, so the code you showed is
translated roughly into:
Canvas c01 = new Canvas ();
Button button1 = new Button ();
button.Click += delegate {
button1.Content = "Hello world";
}
co1.Items.Add (button);
You might want to read the Mono Roadmap to see how we are planning on
getting these things done.
Miguel
>
> Example:
>
> <?xml version="1.0" standalone="yes"?>
> <Window>
> <Button>Hello World</Button>
> </Window>
>
>
> <Canvas ID="root"
>
> xmlns="http://schemas.microsoft.com/2003/xaml"
> xmlns:def="Definition">
> <Button ID="button1" Click="Clicked">Click Me!</Button>
> <def:Code>
> <![CDATA void Clicked(object target, ClickEventArgs args)
> {
> button1.Content = "Hello World";
> }
> ]]>
> </def:Code>
> </Canvas>
>
>
> Link:
> http://longhorn.msdn.microsoft.com/lhsdk/core/overviews/about%20xaml.aspx
>
>
> Best regards,
> Leen Toelen
>
>
>
>
> confidentiality notice:
> The information contained in this e-mail is confidential and may be the subject of
> legal professional privilege. It is intended for the authorized use of the individual
> or entity addressed. If the receiver or reader of this message is not the intended
> recipient, you are hereby notified that any disclosure, copying, distribution or
> use of the contents of this message is prohibited.
> If this email is received in error, please accept our apologies, delete all copies
> from your system, and notify us at cropdesign@cropdesign.com
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
--
Miguel de Icaza <miguel@ximian.com>