1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
208
return new
WindowPattern
(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
115
if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
122
if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
207
if (HasProperty(
WindowPattern
.WindowInteractionStateProperty, l.Properties))
212
if (HasProperty(
WindowPattern
.WindowVisualStateProperty, l.Properties))
235
RemovePropertyTracker(
WindowPattern
.WindowInteractionStateProperty, Tracker.WindowInteractionState);
240
RemovePropertyTracker(
WindowPattern
.WindowVisualStateProperty, Tracker.WindowVisualState);
570
if ( l.EventId ==
WindowPattern
.WindowClosedEvent )
606
RaiseEventInThisClientOnly(
WindowPattern
.WindowClosedEvent, runtimeId, e);
633
if ( l.EventId ==
WindowPattern
.WindowOpenedEvent )
658
AutomationEventArgs e = new AutomationEventArgs(
WindowPattern
.WindowOpenedEvent );
659
RaiseEventInThisClientOnly(
WindowPattern
.WindowOpenedEvent, rawEl, e);
726
WindowPattern
.WindowOpenedEvent,
WindowPattern
.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
80
if ( pattern ==
WindowPattern
.Pattern )
MS\Internal\Automation\Schema.cs (14)
366
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMaximizeProperty, typeof(bool), false ),
367
new AutomationPropertyInfo( convertToBool,
WindowPattern
.CanMinimizeProperty, typeof(bool), false ),
368
new AutomationPropertyInfo( convertToWindowVisualState,
WindowPattern
.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ),
369
new AutomationPropertyInfo( convertToWindowInteractionState,
WindowPattern
.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ),
370
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsModalProperty, typeof(bool), false ),
371
new AutomationPropertyInfo( convertToBool,
WindowPattern
.IsTopmostProperty, typeof(bool), false ),
454
private static readonly AutomationProperty [ ] WindowProperties = {
WindowPattern
.CanMaximizeProperty,
455
WindowPattern
.CanMinimizeProperty,
456
WindowPattern
.IsModalProperty,
457
WindowPattern
.WindowVisualStateProperty,
458
WindowPattern
.WindowInteractionStateProperty,
459
WindowPattern
.IsTopmostProperty };
488
new AutomationPatternInfo(
WindowPattern
.Pattern, WindowProperties, new WrapObjectClientSide(
WindowPattern
.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
89
rawEl.GetCurrentPattern(
WindowPattern
.Pattern);
97
Object windowInteractionState = rawEl.GetPatternPropertyValue(
WindowPattern
.WindowInteractionStateProperty, false);
114
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)
144
if (eventId ==
WindowPattern
.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
175
RaisePropertyChangedEvent(el,
WindowPattern
.CanMinimizeProperty, canMinimize);
186
RaisePropertyChangedEvent(el,
WindowPattern
.CanMaximizeProperty, canMaximize);
516
_objectIdWindow.Add(
WindowPattern
.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty));
517
_objectIdWindow.Add(
WindowPattern
.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));