1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
205
return new
WindowPattern
(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
110
if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
117
if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
199
if (HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
204
if (HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
227
RemovePropertyTracker(
WindowPattern
.WindowInteractionStateProperty, Tracker.WindowInteractionState);
232
RemovePropertyTracker(
WindowPattern
.WindowVisualStateProperty, Tracker.WindowVisualState);
562
if ( l.EventId ==
WindowPattern
.WindowClosedEvent )
598
RaiseEventInThisClientOnly(
WindowPattern
.WindowClosedEvent, runtimeId, e);
625
if ( l.EventId ==
WindowPattern
.WindowOpenedEvent )
650
AutomationEventArgs e = new AutomationEventArgs(
WindowPattern
.WindowOpenedEvent );
651
RaiseEventInThisClientOnly(
WindowPattern
.WindowOpenedEvent, rawEl, e);
718
WindowPattern
.WindowOpenedEvent,
WindowPattern
.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
72
if ( pattern ==
WindowPattern
.Pattern )
MS\Internal\Automation\Schema.cs (14)
355
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMaximizeProperty, typeof(bool), false ),
356
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMinimizeProperty, typeof(bool), false ),
357
new AutomationPropertyInfo( convertToWindowVisualState,
WindowPattern
.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ),
358
new AutomationPropertyInfo( convertToWindowInteractionState,
WindowPattern
.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ),
359
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsModalProperty, typeof(bool), false ),
360
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsTopmostProperty, typeof(bool), false ),
443
private static readonly AutomationProperty [ ] WindowProperties = {
WindowPattern
.CanMaximizeProperty,
444
WindowPattern
.CanMinimizeProperty,
445
WindowPattern
.IsModalProperty,
446
WindowPattern
.WindowVisualStateProperty,
447
WindowPattern
.WindowInteractionStateProperty,
448
WindowPattern
.IsTopmostProperty };
477
new AutomationPatternInfo(
WindowPattern
.Pattern, WindowProperties, new WrapObjectClientSide(
WindowPattern
.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
86
rawEl.GetCurrentPattern(
WindowPattern
.Pattern);
94
Object windowInteractionState = rawEl.GetPatternPropertyValue(
WindowPattern
.WindowInteractionStateProperty, false);
111
WindowPattern
.WindowInteractionStateProperty,
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
86
if (!rawEl.TryGetCurrentPattern(
WindowPattern
.Pattern, out patternObject))
89
Object windowVisualState = rawEl.GetPatternPropertyValue(
WindowPattern
.WindowVisualStateProperty, false);
106
WindowPattern
.WindowVisualStateProperty,
System\Windows\Automation\Automation.cs (1)
132
if (eventId ==
WindowPattern
.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
169
RaisePropertyChangedEvent(el,
WindowPattern
.CanMinimizeProperty, canMinimize);
180
RaisePropertyChangedEvent(el,
WindowPattern
.CanMaximizeProperty, canMaximize);
510
_objectIdWindow.Add(
WindowPattern
.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty));
511
_objectIdWindow.Add(
WindowPattern
.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));