WindowHelperService.TrySetWindowOwner(DependencyObject, Window) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la fenêtre comme étant le propriétaire de la fenêtre spécifiée.
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
Paramètres
- source
- DependencyObject
Propriétaire de target.
- target
- Window
Fenêtre qui sera possédée par source.
Retours
true si l'opération réussit ; sinon false.