private void AddTriangularView() { var margin = SizeConstants.Screen.Width * 0.03f; var heigthOffcet = ((SizeConstants.Screen.Width * 0.30362f * 0.8f) - (SizeConstants.Screen.Width * 0.28f * 0.8f)) / 4; var widthOffcet = ((SizeConstants.Screen.Width * 0.30362f) - (SizeConstants.Screen.Width * 0.28f)) / 4; var triangularBorder = new TriangularView(new CGRect(0, 0, SizeConstants.Screen.Width * 0.30362f, SizeConstants.Screen.Width * 0.30362f * 0.8f)); //var triangularBackgrpundView = new TriangularView(new CGRect(0, 0, SizeConstants.Screen.Width * 0.2907f, SizeConstants.Screen.Width * 0.2907f), 0f) //{ //}; var triangularView = new TriangularView(new CGRect(widthOffcet, heigthOffcet, SizeConstants.Screen.Width * 0.28f, SizeConstants.Screen.Width * 0.28f * 0.8f)); //triangularView2.BackgroundColor = UIColor.Black; TopViewContainer.AddSubview(triangularBorder); TopViewContainer.AddSubview(triangularView); TopViewContainer.BringSubviewToFront(triangularView); var image = new UIImageView(); image.Frame = triangularView.Frame; image.Image = UIImage.FromBundle("LaunchScreen"); image.ContentMode = UIViewContentMode.ScaleAspectFill; triangularView.ClipsToBounds = true; triangularView.AddSubview(image); }
void ReleaseDesignerOutlets() { if (btnCloseBg != null) { btnCloseBg.Dispose(); btnCloseBg = null; } if (btnCloseBgBottom != null) { btnCloseBgBottom.Dispose(); btnCloseBgBottom = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (MainView != null) { MainView.Dispose(); MainView = null; } if (MessageText != null) { MessageText.Dispose(); MessageText = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (RoundImage != null) { RoundImage.Dispose(); RoundImage = null; } if (TableHeightConstraint != null) { TableHeightConstraint.Dispose(); TableHeightConstraint = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TopViewContainer != null) { TopViewContainer.Dispose(); TopViewContainer = null; } if (vWhiteBackground != null) { vWhiteBackground.Dispose(); vWhiteBackground = null; } }