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)
113
if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
120
if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
205
if (HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
210
if (HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
233
RemovePropertyTracker(
WindowPattern
.WindowInteractionStateProperty, Tracker.WindowInteractionState);
238
RemovePropertyTracker(
WindowPattern
.WindowVisualStateProperty, Tracker.WindowVisualState);
568
if ( l.EventId ==
WindowPattern
.WindowClosedEvent )
604
RaiseEventInThisClientOnly(
WindowPattern
.WindowClosedEvent, runtimeId, e);
631
if ( l.EventId ==
WindowPattern
.WindowOpenedEvent )
656
AutomationEventArgs e = new AutomationEventArgs(
WindowPattern
.WindowOpenedEvent );
657
RaiseEventInThisClientOnly(
WindowPattern
.WindowOpenedEvent, rawEl, e);
724
WindowPattern
.WindowOpenedEvent,
WindowPattern
.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
79
if ( pattern ==
WindowPattern
.Pattern )
MS\Internal\Automation\Schema.cs (14)
361
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMaximizeProperty, typeof(bool), false ),
362
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMinimizeProperty, typeof(bool), false ),
363
new AutomationPropertyInfo( convertToWindowVisualState,
WindowPattern
.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ),
364
new AutomationPropertyInfo( convertToWindowInteractionState,
WindowPattern
.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ),
365
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsModalProperty, typeof(bool), false ),
366
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsTopmostProperty, typeof(bool), false ),
449
private static readonly AutomationProperty [ ] WindowProperties = {
WindowPattern
.CanMaximizeProperty,
450
WindowPattern
.CanMinimizeProperty,
451
WindowPattern
.IsModalProperty,
452
WindowPattern
.WindowVisualStateProperty,
453
WindowPattern
.WindowInteractionStateProperty,
454
WindowPattern
.IsTopmostProperty };
483
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)
138
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));