maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla60787.xaml.cs

31 строка
794 B
C#

using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
namespace Xamarin.Forms.Controls
{
#if APP
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 60787, "Frames with border radius preset have this radius reset when their background color is changed.",
PlatformAffected.Android, issueTestNumber: 1)]
public partial class Bugzilla60787 : ContentPage
{
bool _colourIndicator;
public Bugzilla60787()
{
InitializeComponent();
this.btnChangeColour.Clicked += btnChangeColour_Click;
}
void btnChangeColour_Click(object sender, EventArgs e)
{
this.frmDoesChange.BackgroundColor = _colourIndicator ? Color.LightBlue : Color.LightGoldenrodYellow;
_colourIndicator = !_colourIndicator;
}
}
#endif
}