1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
208return new WindowPattern(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
115if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 122if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 207if (HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 212if (HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 235RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 240RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 570if ( l.EventId == WindowPattern.WindowClosedEvent ) 606RaiseEventInThisClientOnly(WindowPattern.WindowClosedEvent, runtimeId, e); 633if ( l.EventId == WindowPattern.WindowOpenedEvent ) 658AutomationEventArgs e = new AutomationEventArgs( WindowPattern.WindowOpenedEvent ); 659RaiseEventInThisClientOnly( WindowPattern.WindowOpenedEvent, rawEl, e); 726WindowPattern.WindowOpenedEvent, WindowPattern.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
80if ( pattern == WindowPattern.Pattern )
MS\Internal\Automation\Schema.cs (14)
366new AutomationPropertyInfo( convertToBool, WindowPattern.CanMaximizeProperty, typeof(bool), false ), 367new AutomationPropertyInfo( convertToBool, WindowPattern.CanMinimizeProperty, typeof(bool), false ), 368new AutomationPropertyInfo( convertToWindowVisualState, WindowPattern.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ), 369new AutomationPropertyInfo( convertToWindowInteractionState, WindowPattern.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ), 370new AutomationPropertyInfo( convertToBool, WindowPattern.IsModalProperty, typeof(bool), false ), 371new AutomationPropertyInfo( convertToBool, WindowPattern.IsTopmostProperty, typeof(bool), false ), 454private static readonly AutomationProperty [ ] WindowProperties = { WindowPattern.CanMaximizeProperty, 455WindowPattern.CanMinimizeProperty, 456WindowPattern.IsModalProperty, 457WindowPattern.WindowVisualStateProperty, 458WindowPattern.WindowInteractionStateProperty, 459WindowPattern.IsTopmostProperty }; 488new AutomationPatternInfo( WindowPattern.Pattern, WindowProperties, new WrapObjectClientSide(WindowPattern.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
89rawEl.GetCurrentPattern(WindowPattern.Pattern); 97Object windowInteractionState = rawEl.GetPatternPropertyValue(WindowPattern.WindowInteractionStateProperty, false); 114WindowPattern.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)
144if (eventId == WindowPattern.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
175RaisePropertyChangedEvent(el, WindowPattern.CanMinimizeProperty, canMinimize); 186RaisePropertyChangedEvent(el, WindowPattern.CanMaximizeProperty, canMaximize); 516_objectIdWindow.Add(WindowPattern.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty)); 517_objectIdWindow.Add(WindowPattern.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));