static bool TryGetBounds(NSDictionary cgWindowDict, out CGRect bounds) { bounds = CGRect.Empty; var boundsDict = cgWindowDict [keyBounds] as NSDictionary; return(boundsDict != null && CGRect.TryParse(boundsDict, out bounds)); }
protected CGRect?GetCGRectValue(NSString key) { var dictValue = GetNSDictionary(key); CGRect value; if (!CGRect.TryParse(dictValue, out value)) { return(null); } return(value); }