RadWindow – (No Borders)

9 posts, 0 answers
  1. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 07 Nov 2009 Link to this post

    I am using the Rad Window and I would like to make some changes.  However, I do not want the header part.  (This is the top part which includes the minimize, maximize and close icons/buttons.)  How do I remove this part along with the borders on the sides?

    Thanks.

     

    RadWindow myPopUp = new RadWindow();

    myPopUp.WindowStartupLocation = WindowStartupLocation.CenterScreen;

    myPopUp.Width = 350;

    myPopUp.Height = 300;          

    myPopUp.Content = new MyContent();         

    myPopUp.BorderThickness = new Thickness(0);         

    myPopUp.ShowDialog();

  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 12 Nov 2009 Link to this post

    Hello,

    You can do so by creating custom template. You can check the attached project to see simple window style that have no borders and header. You will have to add the template xaml as resource and assign the window style to your window instance.

    Thanks for your interest in our  controls.

    Greetings,
    Panayot
    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. Top Gun
    Top Gun avatar
    20 posts
    Member since:
    Nov 2009

    Posted 20 Nov 2009 Link to this post

    I appreciate the help.  That worked well.
  5. Simon Nugent
    Simon Nugent avatar
    7 posts
    Member since:
    Mar 2010

    Posted 17 Sep 2011 Link to this post

    after showing the window it cannot be moved. how can I simulate header hittest somewhere in content area?
    \tx
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Sep 2011 Link to this post

    Hi Simon,

     This is not supported out-of-the-box with the new implementation of the RadWindow control, but could be achieved by extended the "Caption area" using the CaptionHeight property of the RadWindow control. This cannot be moved to an arbitrary place in the window - just starts from the top and its height is the value of the CaptionHeight property.

    Hope this helps.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 06 Feb 2015 in reply to Miroslav Nedyalkov Link to this post

    Can you please send us the complete radWindow Style with only the Close button removed?

    IOW, the complete list of properties default settings for RadWindow.

    Thank you!
  8. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 09 Feb 2015 Link to this post

    Hi Eric,

    Can you let us know which theme are using?

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 09 Feb 2015 in reply to Kalin Link to this post

    SummerTheme

    Thanks,
  10. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 10 Feb 2015 Link to this post

    Hi Eric,

    We have created a sample project for you that demonstrates how to remove the close button of RadWindow. You just need to create a new style that should be based on the default RadWindowStyle. By removing the Button named "PART_CloseButton" of the window's Template the desired appearance could be achieved (notice that we have used Implicit Styles in the sample project).

    Hopes this helps.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner