MozillaZine

MSDN Magazine Article on XML-Based GUIs

Tuesday October 22nd, 2002

Jacob pointed us towards an interesting Microsoft MSDN Magazine article on using XML to create user interfaces. In the tutorial, Paul DiLascia describes how to "develop an XML-based GUI language parser for .NET that lets you code resources, menus, toolbars, and status bars in XML instead of with procedural code." It introduces new XML elements, including <toolbar>, <button> and <menuitem>. Sound familiar? We thought so.

To be fair, DiLascia, who doesn't work for Microsoft, does acknowledge the influence of XUL, though he states, somewhat bizarrely, that it was developed by the "Java language folks". You can download the MotLib.NET C# class library for use in your own .NET applications but note that Microsoft restrictions prevent you from using it in open-source projects.


#30 Re: Re: Re: Was XUL the first to use XML for GUIs?

by james

Friday October 25th, 2002 1:04 AM

You are replying to this message

> But can you change the UI without even closing the application, like you can with Mozilla? :-)

Depends on the application. Libglade (the library used to read Glade's XML files at runtime) will read the XML file when the application asks it to. If the application creates the dialog once, then just hides/shows it when needed, the answer is no. If it destroys the dialog each time it is closed and then recreates it when needed later, the answer is yes.

I guess the same goes for mozilla.

James (the guy who wrote libglade).