WPF tutorial

WPF Button


The Button in WPF is same as 'asp:button' in asp.net The Button element represents a WPF Button control in XAML.
The Button control in WPF is a basic UI component,which raises the ButtonBase.Click event when a user clicks on it.It can contain simple and complex content, such as text and images,respectively. The Button control reacts to the Click event to carry out the instructions given by the user.
The Button control uses the Button class to support the properties required to work with the Button control.

Some Examples and there outputs

Simple Buttons
WPF Button Example
WPF Button Example
WPF Button Example

Properties of the WPF Button Control
Property Description
IsCancel Retrives or specifies a value which decides about the existence of a button as the Cancel button.
IsDefault Retrives or specifies a value which decides about the existance of a button as the Default button
IsDefaulted Retrives a value tht indicates whether or not a button is the one that is activated when a user presses the ENTER key on the keyboard.
Next