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();
8 Answers, 1 is accepted
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.
\tx
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.
Miroslav Nedyalkov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
IOW, the complete list of properties default settings for RadWindow.
Thank you!
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.
Thanks,
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.