Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Button element defines a button control. In order to set the button's caption, icon, and other attributes, you must associate it with a command. You can do this using either the Command attribute as explained above or by including a child <Command> element.

Example

 

Code Block
<Button Command="SAVE" />
<Button>
  

...

<Command Key="SAVE_AS" Caption="Save As" KeyboardTip="A"

...

           LargeIcon="Images\32x32\save.png"

...

           SmallIcon="Images\16x16\save.png"

...

           Tooltip="Saves the document to the selected file." />
</Button>