From c92f079ad910448aa72ca6af9775a78895f3da65 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Tue, 13 Sep 2016 12:34:22 +0100 Subject: Revert "[C] Prevent enabling a Button via setting a Command (#308)" This reverts commit 368a375f13fc2e4b5ff00dbbdd7a2d6bb53988eb. --- .../Bugzilla43354.cs | 56 ---------------------- .../Xamarin.Forms.Controls.Issues.Shared.projitems | 1 - 2 files changed, 57 deletions(-) delete mode 100644 Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43354.cs (limited to 'Xamarin.Forms.Controls.Issues') diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43354.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43354.cs deleted file mode 100644 index 6ed77b96..00000000 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43354.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; - -using Xamarin.Forms.CustomAttributes; -using Xamarin.Forms.Internals; - -#if UITEST -using Xamarin.UITest; -using NUnit.Framework; -#endif - -namespace Xamarin.Forms.Controls.Issues -{ - [Preserve(AllMembers = true)] - [Issue(IssueTracker.Bugzilla, 43354, "Button command being set after IsEnabled enables the button", PlatformAffected.All)] - public class Bugzilla43354 : TestContentPage - { - protected override void Init() - { - var buttonIsEnabledSetFirst = new Button - { - Text = "Click to display an alert", - IsEnabled = false, - Command = new Command(() => DisplayAlert("Test", "Message", "Cancel")), - }; - - var buttonIsEnabledSetSecond = new Button - { - Text = "Click to enable/disable button", - Command = new Command(() => - { - if (buttonIsEnabledSetFirst.IsEnabled) - buttonIsEnabledSetFirst.IsEnabled = false; - else - buttonIsEnabledSetFirst.IsEnabled = true; - }) - }; - - var buttonSetCommandToNull = new Button - { - Text = "Click to set first button's command to null", - Command = new Command(() => buttonIsEnabledSetFirst.Command = null) - }; - - Content = Content = new StackLayout - { - VerticalOptions = LayoutOptions.Center, - Children = - { - buttonIsEnabledSetFirst, - buttonIsEnabledSetSecond, - buttonSetCommandToNull - } - }; - } - } -} diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index 1e0a2732..adf173df 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -124,7 +124,6 @@ - -- cgit v1.2.3