void CommonInit ()
{
maskLayer.FillRule = CAShapeLayer.FillRuleEvenOdd;
maskLayer.FillColor = UIColor.Black.CGColor;
maskLayer.Opacity = 0.6f;
Layer.AddSublayer (maskLayer);
regionOfInterestOutline.Path = UIBezierPath.FromRect (RegionOfInterest).CGPath;
regionOfInterestOutline.FillColor = UIColor.Clear.CGColor;
regionOfInterestOutline.StrokeColor = UIColor.Yellow.CGColor;
Layer.AddSublayer (regionOfInterestOutline);
topLeftControl.Path = UIBezierPath.FromOval (new CGRect (0, 0, regionOfInterestControlDiameter, regionOfInterestControlDiameter)).CGPath;
topLeftControl.FillColor = UIColor.White.CGColor;
Layer.AddSublayer (topLeftControl);
topRightControl.Path = UIBezierPath.FromOval (new CGRect (0, 0, regionOfInterestControlDiameter, regionOfInterestControlDiameter)).CGPath;
topRightControl.FillColor = UIColor.White.CGColor;
Layer.AddSublayer (topRightControl);
bottomLeftControl.Path = UIBezierPath.FromOval (new CGRect (0, 0, regionOfInterestControlDiameter, regionOfInterestControlDiameter)).CGPath;
bottomLeftControl.FillColor = UIColor.White.CGColor;
Layer.AddSublayer (bottomLeftControl);
bottomRightControl.Path = UIBezierPath.FromOval (new CGRect (0, 0, regionOfInterestControlDiameter, regionOfInterestControlDiameter)).CGPath;
bottomRightControl.FillColor = UIColor.White.CGColor;
Layer.AddSublayer (bottomRightControl);
// Add the region of interest gesture recognizer to the region of interest
// view so that the region of interest can be resized and moved. If you
// would like to have a fixed region of interest that cannot be resized
// or moved, do not add the following gesture recognizer. You will simply
// need to set the region of interest once in OnRunningChanged method.
ResizeRegionOfInterestGestureRecognizer.Delegate = this;
AddGestureRecognizer (ResizeRegionOfInterestGestureRecognizer);
}