/// <summary> /// Initializes a new instance of the AutomatedApplicationFocusChangedEventArgs /// class. /// </summary> /// <param name="automatedApp"> /// The AutomatedApplication data to pass to the listeners. /// </param> /// <param name="newFocusedElement"> /// The new focused element data to pass the listeners. This can be an AutomationElement /// for an out-of-process scenario or a UIElement for an in-process WPF scenario. /// </param> public AutomatedApplicationFocusChangedEventArgs(AutomatedApplication automatedApp, object newFocusedElement) : base(automatedApp) { NewFocusedElement = newFocusedElement; }
/// <summary> /// Constructs an AutomatedApplicationEventArgs instance with the given /// AutomatedApplication. /// </summary> /// <param name="automatedApp">The AutomatedApplication data to pass to the listeners.</param> public AutomatedApplicationEventArgs(AutomatedApplication automatedApp) { AutomatedApplication = automatedApp; }