DialogLocation Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the location of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To place the dialog into the center of the top most control, the property value must be set to null. The default value is null.
Syntax
public Point? DialogLocation { get; set; }Public Property DialogLocation As Point?Examples
The following example uses Sidebar.DialogLocation to configure dialog location as part of the sidebar workflow. The configured value is checked before the workflow continues.
sidebar.DialogLocation = new System.Windows.Point(20, 20);
if (sidebar.DialogLocation != null)
{
Console.WriteLine("Sidebar: Dialog Location is available.");
}sidebar.DialogLocation = New System.Windows.Point(20, 20)
If sidebar.DialogLocation IsNot Nothing Then
Console.WriteLine("Sidebar: Dialog Location is available.")
End If