private void SetupImageButton() { using ( var image = UIImage.FromBundle("Icons/add_image.png") .ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)) { PickImage.SetBackgroundImage(image, UIControlState.Normal); } using ( var image2 = UIImage.FromBundle("Icons/icon_camera.png") .ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)) { TakeImage.SetBackgroundImage(image2, UIControlState.Normal); } using ( var image3 = UIImage.FromBundle("Icons/icon_mention.png") .ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)) { MentionUser.SetBackgroundImage(image3, UIControlState.Normal); } }
void ReleaseDesignerOutlets() { if (Avatar != null) { Avatar.Dispose(); Avatar = null; } if (BottomConstraint != null) { BottomConstraint.Dispose(); BottomConstraint = null; } if (BottomRuler2 != null) { BottomRuler2.Dispose(); BottomRuler2 = null; } if (IconBox != null) { IconBox.Dispose(); IconBox = null; } if (ImageCollection != null) { ImageCollection.Dispose(); ImageCollection = null; } if (Input != null) { Input.Dispose(); Input = null; } if (InputBoxHieghtConstraint != null) { InputBoxHieghtConstraint.Dispose(); InputBoxHieghtConstraint = null; } if (MentionUser != null) { MentionUser.Dispose(); MentionUser = null; } if (PickImage != null) { PickImage.Dispose(); PickImage = null; } if (TakeImage != null) { TakeImage.Dispose(); TakeImage = null; } }