diff options
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs')
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs index 8267ca04..3ed287d2 100644 --- a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/ProgressBar.cs @@ -5,28 +5,10 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific public static class ProgressBar { - public static readonly BindableProperty ProgressBarPendingModeProperty = - BindableProperty.Create("ProgressBarPendingMode", typeof(bool), - typeof(FormsElement), false); - public static readonly BindableProperty ProgressBarPulsingStatusProperty = BindableProperty.Create("ProgressBarPulsingStatus", typeof(bool), typeof(FormsElement), false); - public static bool GetPendingMode(BindableObject element) - { - return (bool)element.GetValue(ProgressBarPendingModeProperty); - } - - public static void SetPendingMode(BindableObject element, bool isPending) - { - if (!isPending) - { - SetPulsingStatus(element, false); - } - element.SetValue(ProgressBarPendingModeProperty, isPending); - } - public static bool GetPulsingStatus(BindableObject element) { return (bool)element.GetValue(ProgressBarPulsingStatusProperty); @@ -34,23 +16,13 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific public static void SetPulsingStatus(BindableObject element, bool isPulsing) { - if (GetPendingMode(element)) + string style = VisualElement.GetStyle(element); + if (style == ProgressBarStyle.Pending) { element.SetValue(ProgressBarPulsingStatusProperty, isPulsing); } } - public static bool GetPendingMode(this IPlatformElementConfiguration<Tizen, FormsElement> config) - { - return GetPendingMode(config.Element); - } - - public static IPlatformElementConfiguration<Tizen, FormsElement> SetPendingMode(this IPlatformElementConfiguration<Tizen, FormsElement> config, bool isPending) - { - SetPendingMode(config.Element, isPending); - return config; - } - public static bool GetPulsingStatus(this IPlatformElementConfiguration<Tizen, FormsElement> config) { return GetPulsingStatus(config.Element); |