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

Gerald Bauer gerald.bauer at mac.com
Thu Jun 23 22:42:44 EDT 2005


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 .NET/Mono 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
United XAML | http://xaml.sourceforge.net


More information about the Gtk-sharp-list mailing list