Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
---|---|---|
![]() |
FocusChangeForCrossThreadClientEventArgs(IntPtr) | Initializes a new instance of FocusChangeFOrCrossThreadClientEventArgs. |
![]() |
FocusChangeForCrossThreadClientEventArgs(IntPtr, Object) | Initializes a new instance of FocusChangeFOrCrossThreadClientEventArgs that is associated with the specified window. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
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.) |
![]() |
HwndGainingFocus | Gets the HWND of the window that is gaining focus. |
![]() |
OriginalSource | Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.) |
![]() |
RoutedEvent | Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.) |
![]() |
Source | Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.) |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
![]() ![]() |
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.