[Gtk-sharp-list] Anyone Tried Out MyXAML for Gtk#?

Gerald Bauer luxorxul@yahoo.ca
Tue, 22 Jun 2004 23:33:00 -0400 (EDT)


Hello,

  Has anyone tried out using MyXAML for Gtk# yet? Does
anyone plan to? I think MyXAML has great potential as
an alternative to libglade.

  In case you wonder what is MyXAML? MyXAML is a free,
open source parser that lets you script your classes
using XML. For an example see the counter sample in
the appendix. You can find out more about MyXAML
online @ http://www.myxaml.com

  - Gerald

counter.xaml
------------------
<MyXaml>
  <Form Name="AppMainForm"
        Text="XUL Challenge 2004"
        StartPosition='CenterScreen'
        Size="256, 144"
        FormBorderStyle="FixedSingle">
    <Style def:Name="ButtonStyle">
      <StyleProperties>
	    <PropertyStyle FlatStyle="System"/>
	    <PropertyStyle Size="72, 25"/>
      </StyleProperties>
    </Style>
    <Controls>
      <GroupBox Name="GroupBox1" Text="Counter"
Location="8, 8" Size="232, 96" FlatStyle="System">
        <Controls>
          <TextBox Name="TextBox1"
                   Text="0" 
                   Location="8, 24" 
                   Size="216, 23" 
                   TextAlign="Center" 
                   BackColor="Black" 
                   ForeColor="Yellow" 
                   Font="Microsoft Sans Serif, 10pt,
style=Bold"/>
          <Button Name="Button1" Text="Dec(-)"
Location="8, 56" Style="{ButtonStyle}" Click="OnDec"/>
          <Button Name="Button2" Text="Clear"
Location="80, 56" Style="{ButtonStyle}"
Click="OnClear"/>
          <Button Name="Button3" Text="Inc(+)"
Location="152, 56" Style="{ButtonStyle}"
Click="OnInc"/>
        </Controls>
      </GroupBox>
    </Controls>
  </Form>
</MyXaml>


-------------------
Gerald Bauer

XUL Alliance        | http://xul.sourceforge.net  
United XAML         | http://xaml.sourceforge.net
The Thinlet World   | http://thinlet.blog-city.com

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca