Bug 27227 - [WinPhone] ActivityIndicator should set ForegroundColor of underlying ProgressBar
Summary: [WinPhone] ActivityIndicator should set ForegroundColor of underlying Progres...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.4
Hardware: PC Windows
: Normal minor
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-19 13:45 UTC by Massimo Prota
Modified: 2015-06-19 17:40 UTC (History)
4 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Massimo Prota 2015-02-19 13:45:35 UTC
Setting 'Color' property for 'ActivityIndicator' isn't reflecting on Windows Phone, where default theme color will always be used instead.

It should be possible to override system's color, and set a custom one.
Our App is always on Light theme, and often on devices using Black theme the progress bar is invisible.

We've managed to override this behavior in a custom renderer, but I think setting the property in XF ActivityIndicator should reflect at runtime

  public class ActivityIndicatorRenderer : Xamarin.Forms.Platform.WinPhone.ActivityIndicatorRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<ActivityIndicator> e)
        {
            base.OnElementChanged(e);

            this.Control.Foreground = new SolidColorBrush
            {
                Color = "#AC0104"
            };
        }
    }
Comment 1 Eric Maupin 2015-06-19 17:40:50 UTC
This was fixed in 1.4.3-pre3