Share via


HostedWpfControl.TopLevelWindow Property

Definition

Caution

Use the TopLevelWpfWindow property

Gets the top level window of this hosted app.

public:
 virtual property System::Windows::Forms::Control ^ TopLevelWindow { System::Windows::Forms::Control ^ get(); };
[System.Obsolete("Use the TopLevelWpfWindow property")]
public virtual System.Windows.Forms.Control TopLevelWindow { get; }
[<System.Obsolete("Use the TopLevelWpfWindow property")>]
member this.TopLevelWindow : System.Windows.Forms.Control
Public Overridable ReadOnly Property TopLevelWindow As Control

Property Value

Returns Control.

Implements

Attributes

Remarks

If this is an external application, then null is returned.

Applies to