Xamarin forms increase ProgressBar height

半世苍凉 提交于 2019-12-06 10:35:02

Add this override to MyProgressBarRenderer, and adjust Y as necessary....

using UIKit; 
using CoreGraphics;
......
public override void LayoutSubviews()
{
   base.LayoutSubviews();

   var X = 1.0f;
   var Y = 5.0f;

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

There is small issue in the iOS renderer code try using

this.Control.Transform = transform; 

instead of

this.Transform = transform;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!