Removed RadioButton Experimental flag (#12322)

This commit is contained in:
Javier Suárez 2020-10-02 01:40:27 +02:00 коммит произвёл GitHub
Родитель b23cccbaf3
Коммит 80a4dbfb1c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 0 добавлений и 34 удалений

Просмотреть файл

@ -15,7 +15,6 @@ namespace Xamarin.Forms.Controls
protected override void Initialize()
{
base.Initialize();
Device.SetFlags(new List<string> { ExperimentalFlags.RadioButtonExperimental });
}
protected override void OnDisappearing()

Просмотреть файл

@ -9,13 +9,6 @@
Title = "RadioButton Galleries";
var button = new Button
{
Text = "Enable RadioButton",
AutomationId = "EnableRadioButton"
};
button.Clicked += ButtonClicked;
Content = new ScrollView
{
Content = new StackLayout
@ -23,7 +16,6 @@
Children =
{
descriptionLabel,
button,
GalleryBuilder.NavButton("RadioButton Group Gallery", () =>
new RadioButtonGroupGalleryPage(), Navigation),
GalleryBuilder.NavButton("RadioButton Group (Attached Property)", () =>
@ -42,16 +34,5 @@
}
};
}
void ButtonClicked(object sender, System.EventArgs e)
{
var button = sender as Button;
button.Text = "RadioButton Enabled!";
button.TextColor = Color.Black;
button.IsEnabled = false;
Device.SetFlags(new[] { ExperimentalFlags.RadioButtonExperimental });
}
}
}

Просмотреть файл

@ -15,7 +15,6 @@ namespace Xamarin.Forms.Core.UnitTests
{
base.Setup();
Device.PlatformServices = new MockPlatformServices();
Device.SetFlags(new[] { ExperimentalFlags.RadioButtonExperimental });
}
[TearDown]

Просмотреть файл

@ -15,7 +15,6 @@ namespace Xamarin.Forms.Core.UnitTests
{
base.Setup();
Device.PlatformServices = new MockPlatformServices();
Device.SetFlags(new[] { ExperimentalFlags.RadioButtonExperimental });
}
[TearDown]

Просмотреть файл

@ -5,15 +5,6 @@ namespace Xamarin.Forms.Core.UnitTests
[TestFixture]
public class RadioButtonTests : BaseTestFixture
{
[SetUp]
public void SetUp()
{
Device.SetFlags(new[]
{
ExperimentalFlags.RadioButtonExperimental
});
}
[Test]
public void RadioButtonAddedToGroupGetsGroupName()
{

Просмотреть файл

@ -11,7 +11,6 @@ namespace Xamarin.Forms
{
internal const string ShellUWPExperimental = "Shell_UWP_Experimental";
internal const string MarkupExperimental = "Markup_Experimental";
internal const string RadioButtonExperimental = "RadioButton_Experimental";
[EditorBrowsable(EditorBrowsableState.Never)]
public static void VerifyFlagEnabled(

Просмотреть файл

@ -153,8 +153,6 @@ namespace Xamarin.Forms
public RadioButton()
{
ExperimentalFlags.VerifyFlagEnabled(nameof(RadioButton), ExperimentalFlags.RadioButtonExperimental, nameof(RadioButton));
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<RadioButton>>(() =>
new PlatformConfigurationRegistry<RadioButton>(this));
}