Class Button
Represents a templated button control that interprets a Click user interaction.
Inheritance
System.Object
Button
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class Button : ButtonBase
Examples
void MyButton_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("You clicked me.");
Window.Current.IsEnabled = false;
}
Constructors
| Improve this Doc View SourceButton()
Declaration
public Button()