Hi,
Attempt to set .Left and .Top property on RadWindow produces exception.
I’m trying to open modal RadWindow at the specific location on screen. The WindowStartupLocation is set to “Manual”. The code runs like this :
windowAdjustment.Left = _rightClickPoint.X;
windowAdjustment.Top = _rightClickPoint.Y;
windowAdjustment.ShowDialog();
It works perfectly the first time. But setting .Left property the second time causes exception “{“Object reference not set to an instance of an object"} System.Exception {System.NullReferenceException}”
The top of the stack trace :
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupWindowFactory.WindowPopupWindowImpl.Move(Double left, Double top) in c:\Builds\...\Navigation\Window\WindowPopup\WindowPopupWindowImpl.cs:line 39
at Telerik.Windows.Controls.RadWindow.Move(Double x, Double y) in c:\Builds\...\Navigation\Window\RadWindow.cs:line 2028
at Telerik.Windows.Controls.RadWindow.OnLeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\Builds\...\Navigation\Window\RadWindow.cs:line 1713
Any ideas anyone ?
Regards,
Sergey