Aracılığıyla paylaş


WindowHelperService.TrySetWindowOwner(DependencyObject, Window) Yöntem

Tanım

Pencereyi belirtilen pencerenin sahibi olacak şekilde atar.

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

Parametreler

source
DependencyObject

Öğesinin sahibi target .

target
Window

Sahibi olacak pencere source .

Döndürülenler

Boolean

true işlem başarılı olursa, Aksi takdirde, false .

Şunlara uygulanır