The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Occurs when a Button is tapped.
(in System.Windows.dll)XMLNS for XAML:
Not mapped to an xmlns.
public event RoutedEventHandler Click
The following example demonstrates handling the Click event of a Button and setting its IsEnabled property.
void disableButtonClick(object sender, RoutedEventArgs e)
disableButton.IsEnabled = false;
<Button x:Name="disableButton" Width="200"
Click="disableButtonClick" Content="Disabled when clicked" />
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0