public TextBoxAutomationHasKeyboardFocusPropertyEvent (SimpleControlProvider provider, SimpleControlProvider parentProvider) : base (provider, AutomationElementIdentifiers.HasKeyboardFocusProperty) { this.parentProvider = parentProvider; }
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)); } }
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); }
public ExpandCollapsePatternStateEvent (SimpleControlProvider provider) : base (provider, ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty) { }
public PartAutomationHasKeyboardFocusPropertyEvent (SimpleControlProvider provider) : base (provider, AutomationElementIdentifiers.HasKeyboardFocusProperty) { }
public AutomationIsKeyboardFocusablePropertyEvent (SimpleControlProvider provider) : base (provider, AutomationElementIdentifiers.IsKeyboardFocusableProperty) { }