Setting the size of a window

6 posts, 1 answers
  1. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 05 Oct 2009 Link to this post

    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.
  2. Answer
    Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 05 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 05 Oct 2009 Link to this post

    Perfect! Thanks for your quick answer. James.
  5. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 28 Aug 2010 Link to this post

    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.  
  6. George
    Admin
    George avatar
    1332 posts

    Posted 02 Sep 2010 Link to this post

    Hello James,

    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.

    Kind regards,
    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
  7. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 02 Sep 2010 Link to this post

    Thanks George, I'll open a support request and put the screenshots there.
    James.
Back to Top
DevCraft banner