Skip to content

Commit

Permalink
[Tizen] Implement ProgressColor property in ProgressBarHandlers
Browse files Browse the repository at this point in the history
- Implement ProgressColor property in ProgressBarHandlers (dotnet#600)
  • Loading branch information
rookiejava authored and myroot committed Aug 25, 2022
1 parent 9c72865 commit 330fab4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ public static void MapProgressColor(ProgressBarHandler handler, IProgress progre
{
handler.PlatformView?.UpdateProgressColor(progress);
}

public static void MapProgressColor(ProgressBarHandler handler, IProgress progress)
{
handler.NativeView?.UpdateProgressColor(progress);
}
}
}
5 changes: 5 additions & 0 deletions src/Core/src/Platform/Tizen/ProgressBarExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ public static void UpdateProgressColor(this ProgressBar platformProgressBar, IPr
{
platformProgressBar.Color = progress.ProgressColor.ToPlatformEFL();
}

public static void UpdateProgressColor(this ProgressBar nativeProgressBar, IProgress progress)
{
nativeProgressBar.Color = progress.ProgressColor.ToNativeEFL();
}
}
}

0 comments on commit 330fab4

Please sign in to comment.