public Credit(string message, string image, bool scaleImage, RectangleF frame, PlatformView parent) { MemoryStream logoStream = Rock.Mobile.IO.AssetConvert.AssetToStream(image); logoStream.Position = 0; Image = PlatformImageView.Create( ); Image.AddAsSubview(parent.PlatformNativeObject); Image.Image = logoStream; Image.ImageScaleType = PlatformImageView.ScaleType.ScaleAspectFit; logoStream.Dispose( ); Label = PlatformLabel.Create( ); Label.Text = message; Label.BackgroundColor = ControlStylingConfig.BG_Layer_Color; Label.BorderColor = ControlStylingConfig.BG_Layer_BorderColor; Label.BorderWidth = ControlStylingConfig.BG_Layer_BorderWidth; Label.TextColor = ControlStylingConfig.Label_TextColor; Label.Bounds = new RectangleF(0, 0, frame.Width * .75f, 0); Label.SizeToFit( ); Label.AddAsSubview(parent.PlatformNativeObject); }