Removed RadioButton Experimental flag (#12322)
This commit is contained in:
Родитель
b23cccbaf3
Коммит
80a4dbfb1c
|
@ -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));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче