1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
205return new WindowPattern(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
113if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 120if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 205if (HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 210if (HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 233RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 238RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 568if ( l.EventId == WindowPattern.WindowClosedEvent ) 604RaiseEventInThisClientOnly(WindowPattern.WindowClosedEvent, runtimeId, e); 631if ( l.EventId == WindowPattern.WindowOpenedEvent ) 656AutomationEventArgs e = new AutomationEventArgs( WindowPattern.WindowOpenedEvent ); 657RaiseEventInThisClientOnly( WindowPattern.WindowOpenedEvent, rawEl, e); 724WindowPattern.WindowOpenedEvent, WindowPattern.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
79if ( pattern == WindowPattern.Pattern )
MS\Internal\Automation\Schema.cs (14)
361new AutomationPropertyInfo( convertToBool, WindowPattern.CanMaximizeProperty, typeof(bool), false ), 362new AutomationPropertyInfo( convertToBool, WindowPattern.CanMinimizeProperty, typeof(bool), false ), 363new AutomationPropertyInfo( convertToWindowVisualState, WindowPattern.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ), 364new AutomationPropertyInfo( convertToWindowInteractionState, WindowPattern.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ), 365new AutomationPropertyInfo( convertToBool, WindowPattern.IsModalProperty, typeof(bool), false ), 366new AutomationPropertyInfo( convertToBool, WindowPattern.IsTopmostProperty, typeof(bool), false ), 449private static readonly AutomationProperty [ ] WindowProperties = { WindowPattern.CanMaximizeProperty, 450WindowPattern.CanMinimizeProperty, 451WindowPattern.IsModalProperty, 452WindowPattern.WindowVisualStateProperty, 453WindowPattern.WindowInteractionStateProperty, 454WindowPattern.IsTopmostProperty }; 483new AutomationPatternInfo( WindowPattern.Pattern, WindowProperties, new WrapObjectClientSide(WindowPattern.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
86rawEl.GetCurrentPattern(WindowPattern.Pattern); 94Object windowInteractionState = rawEl.GetPatternPropertyValue(WindowPattern.WindowInteractionStateProperty, false); 111WindowPattern.WindowInteractionStateProperty,
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
86if (!rawEl.TryGetCurrentPattern(WindowPattern.Pattern, out patternObject)) 89Object windowVisualState = rawEl.GetPatternPropertyValue(WindowPattern.WindowVisualStateProperty, false); 106WindowPattern.WindowVisualStateProperty,
System\Windows\Automation\Automation.cs (1)
138if (eventId == WindowPattern.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
169RaisePropertyChangedEvent(el, WindowPattern.CanMinimizeProperty, canMinimize); 180RaisePropertyChangedEvent(el, WindowPattern.CanMaximizeProperty, canMaximize); 510_objectIdWindow.Add(WindowPattern.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty)); 511_objectIdWindow.Add(WindowPattern.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));