Show / Hide Table of Contents

Method dialog.OwnerWindow


Overload

Sets owner window.

public dialog OwnerWindow(AnyWnd owner, bool ownerCenter = false, bool dontDisable = false)
Parameters
owner  (AnyWnd)

Owner window, or one of its child/descendant controls. Can be wnd, WPF window or element, winforms window or control. Can be null.

ownerCenter  (bool)

Show the dialog in the center of the owner window.

dontDisable  (bool)

Don't disable the owner window. If false, disables if it belongs to this thread.

Returns
dialog

Remarks

The owner window will be disabled, and this dialog will be on top of it. This window will be in owner's screen, if screen was not explicitly specified (see dialog.InScreen). dialog.options.defaultScreen is ignored.

See Also

dialog.options.autoOwnerWindow