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