Glossary Item Box
Advanced button has ability to customize image and text properties.
Features:
Button view sample:
![]()
You can set one from 17 pre-defined button kinds (using Kind property). Kind property defines image and text of a button. For example, on the picture on the top there is a button of a "Save" kind.
Button control has next predefined kinds: add, back, cancel, clone, close, delete, edit, forward, help, home, new, ok, refresh, save, save and close, search, up.
If you want the user to work with single click button set SingleClickButton = true.
For that you should set ConfirmMessage and SecondConfirmMessage. For example you can use it in the following case:
Code:
<al:button id="Button1" runat="server" Kind="Delete" ConfirmMessage="Are you sure that you want to delete this item?" SecondConfirmMessage="Item will be deleted permanently! Are you sure want to do it?"></al:button>
Behavior:
Control may use GrayScale filter for drawing image - when mouse cursor over button it draws full-colored image, when mouse cursor out - button draws gray scale image (property ).
Default button view with GrayScaleImage = true:

Button when mouse over:

You may set such properties of button, as border and background colors, but you may set look and feel of button to default Windows button.
Button appearance:



To set appearance of button to this - call AutoFormat dialog for Button in VS designer - and select WindowsDefault theme:

| See Also |
Overview: Overview
Client-side API: Button client side API