Compartir a través de


WindowHelperService.TrySetWindowOwner(DependencyObject, Window) Método

Definición

Asigna la ventana como propietaria de la ventana especificada.

public:
 bool TrySetWindowOwner(System::Windows::DependencyObject ^ source, System::Windows::Window ^ target);
public bool TrySetWindowOwner (System.Windows.DependencyObject source, System.Windows.Window target);
member this.TrySetWindowOwner : System.Windows.DependencyObject * System.Windows.Window -> bool
Public Function TrySetWindowOwner (source As DependencyObject, target As Window) As Boolean

Parámetros

source
DependencyObject

El propietario de target.

target
Window

La ventana cuyo propietario será source.

Devoluciones

Boolean

true si la operación es correcta; de lo contrario, false.

Se aplica a