Intersoft ClientUI Documentation
How-to: Create Simple Button and Handle Click Event
See Also Send Feedback
Intersoft ClientUI 7 > ClientUI Controls > Control Library > Button Controls Overview > UXButton > How-to: Create Simple Button and Handle Click Event

Glossary Item Box

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

©2012. All Rights Reserved.