7
public class NotebookSample: VBox
9
public NotebookSample ()
11
Notebook nb = new Notebook ();
12
nb.Add (new Label ("First tab content"), "First Tab");
13
nb.Add (new MyWidget (), "Second Tab");
14
nb.TabOrientation = NotebookTabOrientation.Bottom;
15
PackStart (nb, BoxMode.FillAndExpand);
19
class MyWidget: Canvas
21
protected override void OnDraw (Context ctx, Rectangle dirtyRect)
24
ctx.SetColor (new Color (1.0f, 0f, 0.5f));
25
ctx.Rectangle (5, 5, 200, 100);
27
ctx.SetColor (new Color (0f, 0f, 1f));