Owner Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the System.Windows.Window that represents the top-level window that will own the dialog form. The default value is null.
Syntax
public Window Owner { get; set; }Public Property Owner As WindowExamples
The following example uses ShowDialogSettings.Owner to configure owner as part of the show dialog settings workflow. The configured value is checked before the workflow continues.
showDialogSettings.Owner = new System.Windows.Window();
if (showDialogSettings.Owner != null)
{
Console.WriteLine("Show Dialog Settings: Owner is available.");
}showDialogSettings.Owner = New System.Windows.Window()
If showDialogSettings.Owner IsNot Nothing Then
Console.WriteLine("Show Dialog Settings: Owner is available.")
End If