Example #1
0
        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));
        }
Example #2
0
        protected CGRect?GetCGRectValue(NSString key)
        {
            var    dictValue = GetNSDictionary(key);
            CGRect value;

            if (!CGRect.TryParse(dictValue, out value))
            {
                return(null);
            }

            return(value);
        }