diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 66 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37290.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37290.cs new file mode 100644 index 00000000..0f089644 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37290.cs @@ -0,0 +1,65 @@ +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, 37290, "[WinRT/UWP] Setting ActivityIndicator.IsRunning=\"false\" shows the ActivityIndicator", PlatformAffected.WinRT)] + public class Bugzilla37290 : TestContentPage + { + protected override void Init() + { + var activityIndicator = new ActivityIndicator + { + IsRunning = false, + Opacity = 0.4 + }; + var opacityStepper = new Stepper + { + Minimum = 0.1, + Maximum = 1.0, + Increment = .1, + Value = 0.4 + }; + var stepperValue = new Label + { + Text = "Current Value: " + opacityStepper.Value.ToString() + }; + opacityStepper.ValueChanged += (s, e) => + { + activityIndicator.Opacity = opacityStepper.Value; + stepperValue.Text = "Current Value: " + opacityStepper.Value.ToString(); + }; + Content = new StackLayout + { + Children = + { + new Label + { + Text = "The activity indicator below should not be initially visible. You can also use the stepper to change its Opacity value." + }, + activityIndicator, + new Button + { + Text = "Click to toggle IsRunning on the ActivityIndicator", + Command = new Command(() => activityIndicator.IsRunning = !activityIndicator.IsRunning) + }, + new StackLayout() + { + Orientation = StackOrientation.Horizontal, + Children = + { + opacityStepper, + stepperValue + } + } + } + }; + } + } +}
\ No newline at end of file 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 8ef92d46..83a5995b 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 @@ -173,6 +173,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla47923.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla48236.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla47971.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla37290.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla51553.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla51802.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla51236.cs" /> |