Example #1
0
        protected override void OnAttached()
        {
            ProgressBar            switchCompat = (ProgressBar)Control;
            ProgressBarColorEffect effect       = (ProgressBarColorEffect)Element.Effects.FirstOrDefault(e => e is ProgressBarColorEffect);

            SetColor(switchCompat, effect.Color.ToAndroid());
        }
        protected override void OnAttached()
        {
            UIProgressView         progressBar = (UIProgressView)Control;
            ProgressBarColorEffect effect      = (ProgressBarColorEffect)Element.Effects.FirstOrDefault(e => e is ProgressBarColorEffect);

            oldColor = progressBar.ProgressTintColor;
            progressBar.ProgressTintColor = effect.Color.ToUIColor();
        }