Пример #1
0
        public static AutomationPeer CreatePeerForElement(IFrameworkElement element)         // TODO: UIElement
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            return(element.GetAutomationPeer());
        }
Пример #2
0
        public static AutomationPeer FromIFrameworkElement(IFrameworkElement element)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            return(element.GetAutomationPeer());
        }
Пример #3
0
        private static AutomationPeer CreatePeerForIFrameworkElement(IFrameworkElement element)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            return(element.GetAutomationPeer());
        }