namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific { using FormsElement = Forms.ProgressBar; 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); } public static void SetPulsingStatus(BindableObject element, bool isPulsing) { if (GetPendingMode(element)) { element.SetValue(ProgressBarPulsingStatusProperty, isPulsing); } } public static bool GetPendingMode(this IPlatformElementConfiguration config) { return GetPendingMode(config.Element); } public static IPlatformElementConfiguration SetPendingMode(this IPlatformElementConfiguration config, bool isPending) { SetPendingMode(config.Element, isPending); return config; } public static bool GetPulsingStatus(this IPlatformElementConfiguration config) { return GetPulsingStatus(config.Element); } public static IPlatformElementConfiguration SetPulsingStatus(this IPlatformElementConfiguration config, bool isPulsing) { SetPulsingStatus(config.Element, isPulsing); return config; } } }