Intersoft ClientUI Documentation
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.

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
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");
}
See Also

Concepts

Other Resources