WpfDialogAssistant.SetOwner Method (Form)
Call this method to set the owner of the Window from a Windows Forms form.
For a modal dialog this property must be set.
Namespace: Microsoft.TeamFoundation.Controls.WPF
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Sub SetOwner ( _
form As Form _
)
public void SetOwner(
Form form
)
public:
void SetOwner(
Form^ form
)
member SetOwner :
form:Form -> unit
public function SetOwner(
form : Form
)
Parameters
- form
Type: System.Windows.Forms.Form
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.