[Gtk-sharp-list] Anyone tried out MyXAML for Gtk# to create UIs using XML?
   
    Gerald Bauer
     
    luxorxul@yahoo.ca
       
    Tue, 10 Aug 2004 10:19:11 -0400 (EDT)
    
    
  
Hello,
   Has anyone tried out using MyXAML for Gtk# running
on Mono yet to create UIs using XML? Does anyone plan
to?
    
   For example, the following Gtk# code taken from the
O'Reilly article titled "Using the Gtk Toolkit with
Mono" by Niel M. Bornstein online @
http://www.ondotnet.com/pub/a/dotnet/2004/08/09/gtk_mono.htm
looks like made for an XML UI rendition:
   Window window = new Window("Simple Application");
    Label label = new Label("Name");
    Entry entry = new Entry();
    Button button = new Button("Hello!");
    
    window.DeleteEvent += 
      new DeleteEventHandler(window_DeleteEvent);
    button.Clicked += new
EventHandler(button_Clicked);
    VBox vbox = new VBox();
    HBox hbox = new HBox();
    hbox.PackStart(label, false, false, 12);
    hbox.PackStart(entry, false, false, 12);
    vbox.PackStart(hbox);
    vbox.PackStart(button, false, false, 12);
    window.Add(vbox);
    window.SetDefaultSize(200, 100);
   Any thoughts? Any comments?
  - Gerald
PS: What is MyXAML?
MyXAML is a free, open source parser in C# that lets
you script your Mono/.NET classes using XML. See
http://www.myxaml.com for details or
http://xul.sourceforge.net/counter.html#myxaml for a
MyXAML markup sample in action.
-------------------
Gerald Bauer
XUL Alliance | http://xul.sourceforge.net  
United XAML  | http://xaml.sourceforge.net
______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca