.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,090 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
xxx.Click+=(sender,e)=>{};
how to remove it?
then I add another
If the handler does not need to access local variables, then try to define functions:
void Clicked1(object? sender, EventArgs e)
{
. . .
}
void Clicked2(object? sender, EventArgs e)
{
. . .
}
xxx.Clicked += Clicked1;
. . .
xxx.Clicked -= Clicked1;
xxx.Clicked += Clicked2;