1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
226return new WindowPattern(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
123if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 130if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 215if (HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 220if (HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 243RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 248RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 579if ( l.EventId == WindowPattern.WindowClosedEvent ) 615RaiseEventInThisClientOnly(WindowPattern.WindowClosedEvent, runtimeId, e); 643if ( l.EventId == WindowPattern.WindowOpenedEvent ) 668AutomationEventArgs e = new AutomationEventArgs( WindowPattern.WindowOpenedEvent ); 669RaiseEventInThisClientOnly( WindowPattern.WindowOpenedEvent, rawEl, e); 736WindowPattern.WindowOpenedEvent, WindowPattern.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
88if ( pattern == WindowPattern.Pattern )
MS\Internal\Automation\Schema.cs (14)
340new AutomationPropertyInfo( convertToBool, WindowPattern.CanMaximizeProperty, typeof(bool), false ), 341new AutomationPropertyInfo( convertToBool, WindowPattern.CanMinimizeProperty, typeof(bool), false ), 342new AutomationPropertyInfo( convertToWindowVisualState, WindowPattern.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ), 343new AutomationPropertyInfo( convertToWindowInteractionState, WindowPattern.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ), 344new AutomationPropertyInfo( convertToBool, WindowPattern.IsModalProperty, typeof(bool), false ), 345new AutomationPropertyInfo( convertToBool, WindowPattern.IsTopmostProperty, typeof(bool), false ), 428private static readonly AutomationProperty [ ] WindowProperties = { WindowPattern.CanMaximizeProperty, 429WindowPattern.CanMinimizeProperty, 430WindowPattern.IsModalProperty, 431WindowPattern.WindowVisualStateProperty, 432WindowPattern.WindowInteractionStateProperty, 433WindowPattern.IsTopmostProperty }; 462new AutomationPatternInfo( WindowPattern.Pattern, WindowProperties, new WrapObjectClientSide(WindowPattern.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
97rawEl.GetCurrentPattern(WindowPattern.Pattern); 105Object windowInteractionState = rawEl.GetPatternPropertyValue(WindowPattern.WindowInteractionStateProperty, false); 122WindowPattern.WindowInteractionStateProperty,
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
94if (!rawEl.TryGetCurrentPattern(WindowPattern.Pattern, out patternObject)) 97Object windowVisualState = rawEl.GetPatternPropertyValue(WindowPattern.WindowVisualStateProperty, false); 114WindowPattern.WindowVisualStateProperty,
System\Windows\Automation\Automation.cs (1)
168if (eventId == WindowPattern.WindowClosedEvent)
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
182RaisePropertyChangedEvent(el, WindowPattern.CanMinimizeProperty, canMinimize); 193RaisePropertyChangedEvent(el, WindowPattern.CanMaximizeProperty, canMaximize); 523_objectIdWindow.Add(WindowPattern.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty)); 524_objectIdWindow.Add(WindowPattern.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));