This example shows how to create a simple UXButton to a page and handle its click event.
Example
Description
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.
Code
Attach Click event in XAML.
XAML | ![]() |
---|---|
<Intersoft:UXButton Content="Button" Click="UXButton1_Click" /> |
For this example, demonstrate showing a MessageBox during Click event handler.
C# | ![]() |
---|---|
private void UXButton1_Click(object sender, RoutedEventArgs e) { MessageBox.Show("UXButton clicked"); } |