This is a migrated thread and some comments may be shown as answers.

Exception from WindowPopupWindowImpl.Move(...)

1 Answer 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sergey Karpov
Top achievements
Rank 1
Sergey Karpov asked on 23 Feb 2010, 05:09 PM

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

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Feb 2010, 07:56 AM
Hi Sergey,

 Unfortunately this is an issue in the implementation of the RadWindow control for WPF desktop application. The problem will be fixed for the Q1 released. For now I could suggest you to create new window instead of reusing the old one. Hope this is good for you. If not, please let us know.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Sergey Karpov
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or