Наследование: System.Windows.Automation.Provider.IRawElementProviderSimple
Пример #1
0
        public static void Install(ElementProvider elementProvider)
        {
            if (elementProvider == null)
            {
                throw new ArgumentNullException("elementProvider");
            }

            new ElementProviderHook(elementProvider);
        }
Пример #2
0
            public ElementProviderHook(ElementProvider elementProvider)
            {
                _elementProvider = elementProvider;
                _elementProvider.Control.HandleCreated   += Control_HandleCreated;
                _elementProvider.Control.HandleDestroyed += Control_HandleDestroyed;

                if (_elementProvider.Control.IsHandleCreated)
                {
                    AssignHandle(_elementProvider.Control.Handle);
                }
            }
Пример #3
0
            public ElementProviderHook(ElementProvider elementProvider)
            {
                _elementProvider = elementProvider;
                _elementProvider.Control.HandleCreated += Control_HandleCreated;
                _elementProvider.Control.HandleDestroyed += Control_HandleDestroyed;

                if (_elementProvider.Control.IsHandleCreated)
                    AssignHandle(_elementProvider.Control.Handle);
            }
Пример #4
0
        public static void Install(ElementProvider elementProvider)
        {
            if (elementProvider == null)
                throw new ArgumentNullException("elementProvider");

            new ElementProviderHook(elementProvider);
        }