summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-02-08 14:54:28 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:19 +0900
commit45730855f3b727390f6fd7b861a1cfcc3c37cc5d (patch)
treee381c0255084e9fb06a6f4c800e740487ee262b0 /Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
parent8e3a10205219ff6c4ad273a700f749b271e213ed (diff)
downloadxamarin-forms-45730855f3b727390f6fd7b861a1cfcc3c37cc5d.tar.gz
xamarin-forms-45730855f3b727390f6fd7b861a1cfcc3c37cc5d.tar.bz2
xamarin-forms-45730855f3b727390f6fd7b861a1cfcc3c37cc5d.zip
Add Style to VisualElement as TizenSpecific
- Implement the change proposed in RFC-17 Change-Id: I96431b3a32358be6f32e7acdeb0cbc6a27a98ec4
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs24
1 files changed, 6 insertions, 18 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
index 6bf86b16..444bc852 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
@@ -1,5 +1,6 @@
using System.ComponentModel;
+using SpecificVE = Xamarin.Forms.PlatformConfiguration.TizenSpecific.VisualElement;
using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.ProgressBar;
using EProgressBar = ElmSharp.ProgressBar;
@@ -46,20 +47,20 @@ namespace Xamarin.Forms.Platform.Tizen
{
UpdateProgress();
}
- else if (e.PropertyName == Specific.ProgressBarPendingModeProperty.PropertyName)
- {
- UpdatePendingMode();
- }
else if (e.PropertyName == Specific.ProgressBarPulsingStatusProperty.PropertyName)
{
UpdatePulsingStatus();
}
}
+ protected override void UpdateThemeStyle()
+ {
+ Control.Style = SpecificVE.GetStyle(Element);
+ }
+
void UpdateAll()
{
UpdateProgress();
- UpdatePendingMode();
UpdatePulsingStatus();
}
@@ -68,19 +69,6 @@ namespace Xamarin.Forms.Platform.Tizen
Control.Value = Element.Progress;
}
- void UpdatePendingMode()
- {
- bool isPending = Specific.GetPendingMode(Element);
- if (isPending)
- {
- Control.Style = "pending";
- }
- else
- {
- Control.Style = "default";
- }
- }
-
void UpdatePulsingStatus()
{
bool isPulsing = Specific.GetPulsingStatus(Element);