1<?xml version='1.0' encoding='UTF-8'?>
2<page xmlns="http://projectmallard.org/1.0/"
3      xmlns:its="http://www.w3.org/2005/11/its"
4      xmlns:xi="http://www.w3.org/2001/XInclude"
5      type="guide" style="task"
6      id="togglebutton.vala">
7  <info>
8  <title type="text">ToggleButton (Vala)</title>
9    <link type="guide" xref="beginner.vala#buttons"/>
10    <link type="seealso" xref="grid.vala"/>
11    <link type="seealso" xref="spinner.vala"/>
12
13    <revision version="0.1" date="2012-05-09" status="draft"/>
14
15    <credit type="author copyright">
16      <name>Tiffany Antopolski</name>
17      <email its:translate="no">tiffany.antopolski@gmail.com</email>
18      <years>2012</years>
19    </credit>
20
21    <desc>A button which retains state</desc>
22  </info>
23
24  <title>ToggleButton</title>
25  <media type="image" mime="image/png" src="media/togglebutton.png"/>
26  <p>When this ToggleButton is in an active state, the spinner spins.</p>
27
28<code mime="text/x-csharp" style="numbered"><xi:include href="samples/togglebutton.vala" parse="text"><xi:fallback/></xi:include></code>
29<p>
30  In this sample we used the following:
31</p>
32<list>
33  <item><p><link href="http://www.valadoc.org/gtk+-3.0/Gtk.ToggleButton.html">Gtk.ToggleButton</link></p></item>
34</list>
35</page>
36