Intersoft ClientUI 8 > ClientUI Controls > Control Library > Button Controls Overview > UXButton > How-to: Create Simple Button and Handle Click Event |
This example shows how to create a simple UXButton to a page and handle its click event.
UXButton is a base class of most ClientUI Button controls. It support basic button functionality such as focus, click mode, click event, etc. This example shows how to create a simple UXButton and handle its Click event.
Attach Click event in XAML.
XAML |
Copy Code
|
---|---|
<Intersoft:UXButton Content="Button" Click="UXButton1_Click" /> |
For this example, demonstrate showing a MessageBox during Click event handler.
C# |
Copy Code
|
---|---|
private void UXButton1_Click(object sender, RoutedEventArgs e) { MessageBox.Show("UXButton clicked"); } |