From b3c098e9fdc36fa4e2205e574b5c2ae998ec4f83 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Tue, 7 Sep 2021 18:42:23 +0900 Subject: [PATCH] [Tizen] Implement ProgressColor property in ProgressBarHandlers - Implement ProgressColor property in ProgressBarHandlers (#600) --- .../src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs | 5 +++++ src/Core/src/Platform/Tizen/ProgressBarExtensions.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs b/src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs index 096339459cc7..f9fc459a13bc 100644 --- a/src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs +++ b/src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs @@ -24,5 +24,10 @@ public static void MapProgress(ProgressBarHandler handler, IProgress progress) { handler.NativeView?.UpdateProgress(progress); } + + public static void MapProgressColor(ProgressBarHandler handler, IProgress progress) + { + handler.NativeView?.UpdateProgressColor(progress); + } } } \ No newline at end of file diff --git a/src/Core/src/Platform/Tizen/ProgressBarExtensions.cs b/src/Core/src/Platform/Tizen/ProgressBarExtensions.cs index 198365e02c4b..0b7870568e90 100644 --- a/src/Core/src/Platform/Tizen/ProgressBarExtensions.cs +++ b/src/Core/src/Platform/Tizen/ProgressBarExtensions.cs @@ -8,5 +8,10 @@ public static void UpdateProgress(this ProgressBar nativeProgressBar, IProgress { nativeProgressBar.Value = progress.Progress; } + + public static void UpdateProgressColor(this ProgressBar nativeProgressBar, IProgress progress) + { + nativeProgressBar.Color = progress.ProgressColor.ToNativeEFL(); + } } } \ No newline at end of file