ButtonBase.Click event
Occurs when a button control is clicked.
Syntax
<button Click="eventhandler"/>
Event information
| Delegate | RoutedEventHandler |
|---|
Examples
The following example demonstrates handling the Click event and setting the IsEnabled property of a Button, which inherits from ButtonBase.
<StackPanel> <Button Content="Submit" Click="submitButtonClick"/> <TextBlock x:Name="textBlock1"/> </StackPanel>
void submitButtonClick(object sender, RoutedEventArgs e) { textBlock1.Text = "You clicked the Submit button."; }
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 3/12/2013
