Inheritance: System.Windows.Automation.Provider.IRawElementProviderSimple
Beispiel #1
0
        public static void Install(ElementProvider elementProvider)
        {
            if (elementProvider == null)
            {
                throw new ArgumentNullException("elementProvider");
            }

            new ElementProviderHook(elementProvider);
        }
Beispiel #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);
                }
            }
Beispiel #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);
            }
Beispiel #4
0
        public static void Install(ElementProvider elementProvider)
        {
            if (elementProvider == null)
                throw new ArgumentNullException("elementProvider");

            new ElementProviderHook(elementProvider);
        }