summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2017-03-14 06:00:10 -0500
committerRui Marinho <me@ruimarinho.net>2017-03-14 11:00:10 +0000
commit83fd2751e6939eb76a4ecd8b098144afaa2d289f (patch)
treec0875957260af9107e49b09f82911893157716f3 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared
parent05f0f7610f197ccc862e5a815376c3cd93d0efe8 (diff)
downloadxamarin-forms-83fd2751e6939eb76a4ecd8b098144afaa2d289f.tar.gz
xamarin-forms-83fd2751e6939eb76a4ecd8b098144afaa2d289f.tar.bz2
xamarin-forms-83fd2751e6939eb76a4ecd8b098144afaa2d289f.zip
[WinRT/UWP] Fix Opacity behavior with ProgressBar (#695)
* [WinRT/UWP] Fix Opacity behavior with ProgressBar * Update .nuspec * Further update .nuspec * Adjust .csproj line to fix Mac build
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla37290.cs65
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems1
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" />