mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 09:05:38 +00:00
4da41dbe67
Add a DemoAttribute to all the demos to support this svn path=/trunk/gtk-sharp/; revision=37669
28 lines
657 B
C#
28 lines
657 B
C#
using System;
|
|
using Gtk;
|
|
|
|
namespace GtkDemo
|
|
{
|
|
[Demo ("Expander", "DemoExpander.cs")]
|
|
public class DemoExpander : Gtk.Dialog
|
|
{
|
|
public DemoExpander () : base ("Demo Expander", null, DialogFlags.DestroyWithParent)
|
|
{
|
|
this.BorderWidth = 10;
|
|
this.VBox.PackStart (new Label ("Expander demo. Click on the triangle for details."), false, true, 3);
|
|
|
|
Expander expander = new Expander ("Details");
|
|
expander.Add (new Label ("Details can be shown or hidden."));
|
|
this.VBox.PackStart (expander, false, true, 3);
|
|
|
|
this.AddButton (Stock.Close, ResponseType.Close);
|
|
|
|
this.ShowAll ();
|
|
this.Run ();
|
|
this.Hide ();
|
|
this.Destroy ();
|
|
}
|
|
}
|
|
}
|
|
|