Esempio n. 1
0
        private static bool GetNeedsKeyboard(NSView view)
        {
            var superViews = view.FindSuperviews().ToList();

            superViews.Insert(0, view);

            return(superViews.Any(superView => _attachedProperties.GetValue(superView, NeedsKeyboardAttachedPropertyKey, () => default(bool?)).GetValueOrDefault()));
        }