Share via


FocusChangeForCrossThreadClientEventArgs Class

Event arguments for an event raised by a control on the Visual Studio UI thread when it has a child Win32 HWND that belongs to a different thread and has acquiredWin32 focus. It is required for proper focus restoration when Visual Studio loses or regains activation.

Inheritance Hierarchy

Object
  EventArgs
    RoutedEventArgs
      Microsoft.VisualStudio.Shell.FocusChangeForCrossThreadClientEventArgs

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)

Syntax

'Declaration
Public NotInheritable Class FocusChangeForCrossThreadClientEventArgs _
    Inherits RoutedEventArgs
public sealed class FocusChangeForCrossThreadClientEventArgs : RoutedEventArgs
public ref class FocusChangeForCrossThreadClientEventArgs sealed : public RoutedEventArgs
[<Sealed>]
type FocusChangeForCrossThreadClientEventArgs =  
    class 
        inherit RoutedEventArgs 
    end
public final class FocusChangeForCrossThreadClientEventArgs extends RoutedEventArgs

The FocusChangeForCrossThreadClientEventArgs type exposes the following members.

Constructors

  Name Description
Public method FocusChangeForCrossThreadClientEventArgs(IntPtr) Initializes a new instance of FocusChangeFOrCrossThreadClientEventArgs.
Public method FocusChangeForCrossThreadClientEventArgs(IntPtr, Object) Initializes a new instance of FocusChangeFOrCrossThreadClientEventArgs that is associated with the specified window.

Top

Properties

  Name Description
Public property Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (Inherited from RoutedEventArgs.)
Public property HwndGainingFocus Gets the HWND of the window that is gaining focus.
Public property OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.)
Public property RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.)
Public property Source Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member FocusChangeForCrossThreadClientEvent An event raised to alert Visual Studio to the fact that a window belonging to a thread other than the Visual Studio UI thread is gaining Win32 focus.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace