Good morning, afternoon, evening,
I am having trouble figuring out how I can center a RadWindow using WindowStartupLocation.CenterOwner when I open it from a non-wpf application.
I used the following code in my winform app to open a dialog that is a System.Windows.Window. When I convert it to a RadWindow, it doesn't work and I am at a loss as to how to duplicate functionality.
var dlg = new MyDialog();
System.Windows.Interop.
WindowInteropHelper hwndHelper = new System.Windows.Interop.WindowInteropHelper(dlg);
hwndHelper.Owner =
new IntPtr(Globals.ThisAddIn.Application.Hwnd);
dlg.ShowDialog();
How can I center the window?
Please assist.
Thanks,
Alan
PS. I have a support agreement but decided to post here so that others might benefit from response.