Inheritance: System.Windows.Automation.Provider.IRawElementProviderSimple
コード例 #1
0
		public TextBoxAutomationHasKeyboardFocusPropertyEvent (SimpleControlProvider provider,
		                                                       SimpleControlProvider parentProvider) 
			: base (provider, 
			        AutomationElementIdentifiers.HasKeyboardFocusProperty)
		{
			this.parentProvider = parentProvider;
		}
コード例 #2
0
        internal static object GetClickablePoint(SimpleControlProvider provider)
        {
            bool offScreen
                = (bool)provider.GetPropertyValue(AutomationElementIdentifiers.IsOffscreenProperty.Id);

            if (offScreen == true)
            {
                return(null);
            }
            else
            {
                // TODO: Verify with MS behavior.
                Rect rectangle
                    = (Rect)provider.GetPropertyValue(AutomationElementIdentifiers.BoundingRectangleProperty.Id);
                return(new System.Windows.Point(rectangle.X, rectangle.Y));
            }
        }
コード例 #3
0
        internal static bool IsFormMinimized(SimpleControlProvider provider)
        {
            if (provider == null)
            {
                return(false);
            }

            if (provider.AssociatedControl == null)
            {
                Log.Warn(string.Format("IsFormMinized: {0} returns null", provider.GetType()));
                return(false);
            }

            SWF.Form form = provider.AssociatedControl.FindForm();
            if (form == null)
            {
                return(false);
            }

            return(form.WindowState == SWF.FormWindowState.Minimized);
        }
コード例 #4
0
		public ExpandCollapsePatternStateEvent (SimpleControlProvider provider) 
			: base (provider, 
			        ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty)
		{
		}
コード例 #5
0
		public PartAutomationHasKeyboardFocusPropertyEvent (SimpleControlProvider provider) 
			: base (provider, 
			        AutomationElementIdentifiers.HasKeyboardFocusProperty)
		{
		}
コード例 #6
0
		public AutomationIsKeyboardFocusablePropertyEvent (SimpleControlProvider provider) 
			: base (provider, 
			        AutomationElementIdentifiers.IsKeyboardFocusableProperty)
		{
		}