Having trouble getting help?
Contact Support
Contact Support
Event in Xamarin Button (SfButton)
12 May 20211 minute to read
Clicked event
The click event occurs when the SfButton
is clicked. The event argument is of type EventArgs
.
<buttons:SfButton x:Name="SfButton" Text="Button" Clicked="Button_Clicked"/>
public MainPage()
{
InitializeComponent();
SfButton button = new SfButton();
button.Text = "Button";
button.Clicked += Button_Clicked;
....
}
...
private void Button_Clicked(object sender, EventArgs e)
{
// Invoke your desired action here
}