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

RadWindow.Hide() is obsolete

5 Answers 155 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ivan Kopcanski
Top achievements
Rank 1
Ivan Kopcanski asked on 08 Sep 2009, 12:32 PM
RadWindow.Hide() is obsolete and I use it a lot. I keep references to already opened windows (to gain some performance)
and now I am worried the warning saying that Hide() is obsolete and I should use Close() now. What does Close() method do
in comparisson with Hide() and what are my options now?

5 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Borisov
Telerik team
answered on 08 Sep 2009, 12:42 PM
Hi Ivan Kopcanski,

Now the close method does the same thing as what the hide method used to do. We decided that it will be easier to have only a single method for this which is now Close. If you have any other questions concerning our controls for Silverlight feel free to contact us as soon as possible.

Regards,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ivan Kopcanski
Top achievements
Rank 1
answered on 10 Sep 2009, 07:13 AM
Thank you for the answer, this is a relief. :) 
0
Shawn Burke
Top achievements
Rank 1
answered on 10 Sep 2009, 03:37 PM

Every time I call Show/ShowDialog it will attach the same event handler to 'Opened' event, which then causes the handler to be called multiple times.

0
Hristo Borisov
Telerik team
answered on 10 Sep 2009, 04:08 PM
Hello Shawn Burke,

Yes, we are aware of this problem and will do our best to resolve it for our next major release. Until then I hope this will not be a show stopper for you. Thank you for contacting us.

Kind regards,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Patrik
Top achievements
Rank 1
answered on 11 Nov 2010, 02:06 PM
Shawn, just detach the Opened event handler after it has been called.
Tags
Window
Asked by
Ivan Kopcanski
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Ivan Kopcanski
Top achievements
Rank 1
Shawn Burke
Top achievements
Rank 1
Patrik
Top achievements
Rank 1
Share this question
or