summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT/StepperRenderer.cs
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2017-01-03 05:31:48 -0600
committerRui Marinho <me@ruimarinho.net>2017-01-03 11:31:48 +0000
commit6fc18e058bc5bf7eb645fcd91ffdaf6974dfb375 (patch)
tree42ada310d95ef38d49a459bcde7e330d6c392617 /Xamarin.Forms.Platform.WinRT/StepperRenderer.cs
parentcc0eb5ba4326de96a52c0318a61b89c3bcb098e5 (diff)
downloadxamarin-forms-6fc18e058bc5bf7eb645fcd91ffdaf6974dfb375.tar.gz
xamarin-forms-6fc18e058bc5bf7eb645fcd91ffdaf6974dfb375.tar.bz2
xamarin-forms-6fc18e058bc5bf7eb645fcd91ffdaf6974dfb375.zip
[WinRT/UWP] Apply BackgroundColor to Stepper buttons (#581)
* [WinRT/UWP] Apply BackgroundColor to Stepper buttons * Add explanatory text; use nameof * Move explanatory text to a label
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/StepperRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WinRT/StepperRenderer.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/StepperRenderer.cs b/Xamarin.Forms.Platform.WinRT/StepperRenderer.cs
index 7a4724cf..4f09b126 100644
--- a/Xamarin.Forms.Platform.WinRT/StepperRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/StepperRenderer.cs
@@ -42,6 +42,14 @@ namespace Xamarin.Forms.Platform.WinRT
UpdateMinimum();
else if (e.PropertyName == Stepper.IncrementProperty.PropertyName)
UpdateIncrement();
+ else if (e.PropertyName == VisualElement.BackgroundColorProperty.PropertyName)
+ UpdateBackgroundColor();
+ }
+
+ protected override void UpdateBackgroundColor()
+ {
+ if (Control != null)
+ Control.ButtonBackgroundColor = Element.BackgroundColor;
}
void OnControlValue(object sender, EventArgs e)