MonoMobile.Views.ProgressHud.Draw C# (CSharp) Method

Draw() public method

public Draw ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void
		public override void Draw(RectangleF rect)
		{
			// Center HUD
			RectangleF allRect = Bounds;
			// Draw rounded HUD bacgroud rect
			RectangleF boxRect = new RectangleF(((allRect.Size.Width - _Width) / 2) + _XOffset, ((allRect.Size.Height - _Height) / 2) + _YOffset, _Width, _Height);
			CGContext ctxt = UIGraphics.GetCurrentContext();
			FillRoundedRect(boxRect, ctxt);
		}