Condividi tramite


WindowHelperService.TrySetWindowOwner(DependencyObject, Window) Metodo

Definizione

Assegna la finestra come proprietario della finestra specificata.

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

Parametri

source
DependencyObject

Proprietario di target.

target
Window

Finestra cui assegnare come proprietario source.

Restituisce

true se l'operazione riesce; in caso contrario, false.

Si applica a