Hi,
I wonder if you can help me with a simple code trick. I'd like my Telerik window to open with a little (say, 1cm) border from the edge of the silverlight application (which is as big as the browser window its in) which hosts it. The reason is that when I open it maximised, you can't really tell it's a window.
Do you have a quick line or two of code that will check how big the browser is and set the window size accordingly when it's opened?
Thanks for your help, James.
I wonder if you can help me with a simple code trick. I'd like my Telerik window to open with a little (say, 1cm) border from the edge of the silverlight application (which is as big as the browser window its in) which hosts it. The reason is that when I open it maximised, you can't really tell it's a window.
Do you have a quick line or two of code that will check how big the browser is and set the window size accordingly when it's opened?
Thanks for your help, James.
5 Answers, 1 is accepted
0
Accepted
Hello James,
You can use the RestrictedAreaMargin property to set a margin that will limit the Maximized position of RadWindow. It will also affect the dragging of the RadWindow since the control will be restricted to the margin. To turn on and off this feature you should use the IsRestricted property. I hope this will resolve your problem. Please get back to us if you need any further assistance or code example.
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.
You can use the RestrictedAreaMargin property to set a margin that will limit the Maximized position of RadWindow. It will also affect the dragging of the RadWindow since the control will be restricted to the margin. To turn on and off this feature you should use the IsRestricted property. I hope this will resolve your problem. Please get back to us if you need any further assistance or code example.
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
James
Top achievements
Rank 1
answered on 05 Oct 2009, 10:12 PM
Perfect! Thanks for your quick answer. James.
0
James
Top achievements
Rank 1
answered on 29 Aug 2010, 12:06 AM
Hi,
I'm using the Vista theme and the hint to use, RestrictedAreaMargin, and think I've found a minor issue. When the window is maximised its border is quite indistinct; I think because it doesn't bother drawing a shadow when maximised (why would it need one usually?). Is this true (and can it be fixed?), or is there a workaround?
Thanks, James.
I'm using the Vista theme and the hint to use, RestrictedAreaMargin, and think I've found a minor issue. When the window is maximised its border is quite indistinct; I think because it doesn't bother drawing a shadow when maximised (why would it need one usually?). Is this true (and can it be fixed?), or is there a workaround?
Thanks, James.
0
Hello James,
George
the Telerik team
When the RadWindow goes Maximized, the border is not shown, only the Header is visible. Could you please send us a screenshot that shows the problem, it would be very helpful.
However, if you want to change the style, you could edit the control template as well.
Please do not hesitate to contact us if you require any further information.
George
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
0
James
Top achievements
Rank 1
answered on 02 Sep 2010, 11:59 AM
Thanks George, I'll open a support request and put the screenshots there.
James.
James.