M
Size: a a a
M
PN
<Button x:Name="btz" Text="Click Me" Clicked="Btz" />
<Button Text="Change" BackgroundColor="Yellow" Clicked="Butz"/>
void btz(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
btz.BackgroundColor = Color.Red;
}
}
}
PN
void Btz(object sender, System.EventArgs e)или
void Butz(object sender, System.EventArgs e)
PN
void btz(object sender, System.EventArgs e)
PN
АН
М
MO
М
АН
void btz(object sender, System.EventArgs e)
АН
ublic partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
if (count == 7)
{
BZ.BackgroundColor = Color.Green;
}
BZ.BackgroundColor = Color.Red;
}
void Button2(object sender, System.EventArgs e) //BZ
{
//TZ.Text = "RED";
TZ.BackgroundColor = Color.Blue;
}
}
}
КЛ
ublic partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
if (count == 7)
{
BZ.BackgroundColor = Color.Green;
}
BZ.BackgroundColor = Color.Red;
}
void Button2(object sender, System.EventArgs e) //BZ
{
//TZ.Text = "RED";
TZ.BackgroundColor = Color.Blue;
}
}
}
АН
A
КЛ
A
АН
АН
АН
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
if (count == 7)
{
BZ.BackgroundColor = Color.Green;
}
else
{
BZ.BackgroundColor = Color.Red;
}
}
void Button2(object sender, System.EventArgs e) //BZ
{
//TZ.Text = "RED";
TZ.BackgroundColor = Color.Blue;
}
void Button3(object sender, System.EventArgs e)
{
count = 0;
}
}
}
АН
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
if (count == 7)
{
BZ.BackgroundColor = Color.Green;
}
else
{
BZ.BackgroundColor = Color.Red;
}
}
void Button2(object sender, System.EventArgs e) //BZ
{
//TZ.Text = "RED";
TZ.BackgroundColor = Color.Blue;
}
void Button3(object sender, System.EventArgs e)
{
count = 0;
TZ.Text = $"You clicked {count} times.";
}
}
}