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)
110if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 117if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 199if (HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 204if (HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 227RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 232RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 562if ( l.EventId == WindowPattern.WindowClosedEvent ) 598RaiseEventInThisClientOnly(WindowPattern.WindowClosedEvent, runtimeId, e); 625if ( l.EventId == WindowPattern.WindowOpenedEvent ) 650AutomationEventArgs e = new AutomationEventArgs( WindowPattern.WindowOpenedEvent ); 651RaiseEventInThisClientOnly( WindowPattern.WindowOpenedEvent, rawEl, e); 718WindowPattern.WindowOpenedEvent, WindowPattern.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
72if ( pattern == WindowPattern.Pattern )
MS\Internal\Automation\Schema.cs (14)
355new AutomationPropertyInfo( convertToBool, WindowPattern.CanMaximizeProperty, typeof(bool), false ), 356new AutomationPropertyInfo( convertToBool, WindowPattern.CanMinimizeProperty, typeof(bool), false ), 357new AutomationPropertyInfo( convertToWindowVisualState, WindowPattern.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ), 358new AutomationPropertyInfo( convertToWindowInteractionState, WindowPattern.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ), 359new AutomationPropertyInfo( convertToBool, WindowPattern.IsModalProperty, typeof(bool), false ), 360new AutomationPropertyInfo( convertToBool, WindowPattern.IsTopmostProperty, typeof(bool), false ), 443private static readonly AutomationProperty [ ] WindowProperties = { WindowPattern.CanMaximizeProperty, 444WindowPattern.CanMinimizeProperty, 445WindowPattern.IsModalProperty, 446WindowPattern.WindowVisualStateProperty, 447WindowPattern.WindowInteractionStateProperty, 448WindowPattern.IsTopmostProperty }; 477new 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)
132if (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));