1 instantiation of WindowPattern
UIAutomationClient (1)
System\Windows\Automation\WindowPattern.cs (1)
204return new WindowPattern(el, hPattern, cached);
39 references to WindowPattern
UIAutomationClient (35)
MS\Internal\Automation\ClientEventManager.cs (13)
109if (_winEventTrackers[(int)Tracker.WindowInteractionState] == null && HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 116if (_winEventTrackers[(int)Tracker.WindowVisualState] == null && HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 198if (HasProperty(WindowPattern.WindowInteractionStateProperty, l.Properties)) 203if (HasProperty(WindowPattern.WindowVisualStateProperty, l.Properties)) 226RemovePropertyTracker(WindowPattern.WindowInteractionStateProperty, Tracker.WindowInteractionState); 231RemovePropertyTracker(WindowPattern.WindowVisualStateProperty, Tracker.WindowVisualState); 561if ( l.EventId == WindowPattern.WindowClosedEvent ) 597RaiseEventInThisClientOnly(WindowPattern.WindowClosedEvent, runtimeId, e); 624if ( l.EventId == WindowPattern.WindowOpenedEvent ) 649AutomationEventArgs e = new AutomationEventArgs( WindowPattern.WindowOpenedEvent ); 650RaiseEventInThisClientOnly( WindowPattern.WindowOpenedEvent, rawEl, e); 717WindowPattern.WindowOpenedEvent, WindowPattern.WindowClosedEvent
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
71if ( pattern == WindowPattern.Pattern )
MS\Internal\Automation\Schema.cs (14)
355new AutomationPropertyInfo( convertToBool, WindowPattern.CanMaximizeProperty, typeof(bool), false ), 356new AutomationPropertyInfo( convertToBool, WindowPattern.CanMinimizeProperty, typeof(bool), false ), 357new AutomationPropertyInfo( convertToWindowVisualState, WindowPattern.WindowVisualStateProperty, typeof(WindowVisualState), WindowVisualState.Normal ), 358new AutomationPropertyInfo( convertToWindowInteractionState, WindowPattern.WindowInteractionStateProperty, typeof(WindowInteractionState),WindowInteractionState.Running ), 359new AutomationPropertyInfo( convertToBool, WindowPattern.IsModalProperty, typeof(bool), false ), 360new AutomationPropertyInfo( convertToBool, WindowPattern.IsTopmostProperty, typeof(bool), false ), 443private static readonly AutomationProperty [ ] WindowProperties = { WindowPattern.CanMaximizeProperty, 444WindowPattern.CanMinimizeProperty, 445WindowPattern.IsModalProperty, 446WindowPattern.WindowVisualStateProperty, 447WindowPattern.WindowInteractionStateProperty, 448WindowPattern.IsTopmostProperty }; 477new AutomationPatternInfo( WindowPattern.Pattern, WindowProperties, new WrapObjectClientSide(WindowPattern.Wrap) ),
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
85rawEl.GetCurrentPattern(WindowPattern.Pattern); 93Object windowInteractionState = rawEl.GetPatternPropertyValue(WindowPattern.WindowInteractionStateProperty, false); 110WindowPattern.WindowInteractionStateProperty,
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
85if (!rawEl.TryGetCurrentPattern(WindowPattern.Pattern, out patternObject)) 88Object windowVisualState = rawEl.GetPatternPropertyValue(WindowPattern.WindowVisualStateProperty, false); 105WindowPattern.WindowVisualStateProperty,
System\Windows\Automation\Automation.cs (1)
131if (eventId == WindowPattern.WindowClosedEvent)
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\EventManager.cs (4)
168RaisePropertyChangedEvent(el, WindowPattern.CanMinimizeProperty, canMinimize); 179RaisePropertyChangedEvent(el, WindowPattern.CanMaximizeProperty, canMaximize); 509_objectIdWindow.Add(WindowPattern.CanMaximizeProperty, new RaiseEvent(HandleCanMaximizeProperty)); 510_objectIdWindow.Add(WindowPattern.CanMinimizeProperty, new RaiseEvent(HandleCanMinimizeProperty));