1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
204
return new
WindowPattern
(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
109
if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
116
if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
198
if (HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
203
if (HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
226
RemovePropertyTracker(
WindowPattern
.WindowInteractionStateProperty, Tracker.WindowInteractionState);
231
RemovePropertyTracker(
WindowPattern
.WindowVisualStateProperty, Tracker.WindowVisualState);
561
if ( l.EventId ==
WindowPattern
.WindowClosedEvent )
597
RaiseEventInThisClientOnly(
WindowPattern
.WindowClosedEvent, runtimeId, e);
624
if ( l.EventId ==
WindowPattern
.WindowOpenedEvent )
649
AutomationEventArgs e = new AutomationEventArgs(
WindowPattern
.WindowOpenedEvent );
650
RaiseEventInThisClientOnly(
WindowPattern
.WindowOpenedEvent, rawEl, e);
717
WindowPattern
.WindowOpenedEvent,
WindowPattern
.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
71
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)
85
rawEl.GetCurrentPattern(
WindowPattern
.Pattern);
93
Object windowInteractionState = rawEl.GetPatternPropertyValue(
WindowPattern
.WindowInteractionStateProperty, false);
110
WindowPattern
.WindowInteractionStateProperty,
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
85
if (!rawEl.TryGetCurrentPattern(
WindowPattern
.Pattern, out patternObject))
88
Object windowVisualState = rawEl.GetPatternPropertyValue(
WindowPattern
.WindowVisualStateProperty, false);
105
WindowPattern
.WindowVisualStateProperty,
System\Windows\Automation\Automation.cs (1)
131
if (eventId ==
WindowPattern
.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
168
RaisePropertyChangedEvent(el,
WindowPattern
.CanMinimizeProperty, canMinimize);
179
RaisePropertyChangedEvent(el,
WindowPattern
.CanMaximizeProperty, canMaximize);
509
_objectIdWindow.Add(
WindowPattern
.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty));
510
_objectIdWindow.Add(
WindowPattern
.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));