Progress bar not getting transformed on button click in ios

niknik Member

Hi all,

I'm facing a problem in ios.

I have a progress bar which shows after I tap the login button.

I have changed it's height using custom renderer as below : -

public class CustomProgressBarRenderer : ProgressBarRenderer
protected override void OnElementChanged(
ElementChangedEventArgs<Xamarin.Forms.ProgressBar> e)

public override void LayoutSubviews()

    var X = 1.0f;
    var Y = 7.0f;

    CGAffineTransform transform = CGAffineTransform.MakeScale(X, Y);
    this.Transform = transform;

this.Control.Layer.CornerRadius = 10; 
    this.Control.ClipsToBounds = true;



So the progress bar height is getting changed through the transform operation.

But when I click on the login button and progress bar becomes visible, progress bar is not showing change in height. It's as if the transforming is not having any effect.

I cant figure out whats the reason, it's only happening when I tap a button to set and run the progress bar.


Sign In or Register to comment.