Hi,

  David Hyatt - Safari, Firebird and Mozilla XUL
legend - writes in his blog story titled "XAML
Ramblings at 2am":

  The tags and attributes in a XAML file map directly
to classes, e.g., C# classes. All you have to do is
make a C# class that fits into the class hierarchy
somewhere (where to put it depends on whether you're
making a new widget, a simple piece of styled markup
like a bold tag, a drawing primitive, a layout
manager, etc.). As long as you make sure it has a
parameterless constructor, your object will get
created at that point in the "DOM hierarchy" and have
all of its fields properly initialized to the
attribute values supplied in the tag.

  This is probably the single coolest part of XAML,
the "auto-mapping" from tags to C# objects. This was a
dream I had with XUL, but Mozilla never really had the
underlying framework to pull it off. This feature
gives you automatic extensibility and allows you to
easily implement your own layout managers and widgets,
something XUL has never been able to do. (XBL can be
used to create composite widgets in XUL, but not to
create entirely new layout primitives and widgets that
do their own layout/painting).  


  Well, David - hold your breath - the Luxor XUL
toolkit sports "auto-mapping" from tags to Java
objects for more than a year now. 

  Here are some links to get started:

  * Luxor Java Bean Plugin Example Suite @
http://petra.sourceforge.net/bean.html  
  * Luxor Applet Plugin Example Suite @
http://petra.sourceforge.net/applet.html
  * Create Your Own XUL Tags - Getting Started Guide @
http://petra.sourceforge.net/tutorial.html

  Any comments from the Mozilla XUL crowd?

  - Gerald  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xul-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-talk

Reply via email to