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

Winform PropertyGrid in RadWindow

1 Answer 59 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 26 Aug 2013, 07:29 AM
Hi,
as there have been some problems using RadPropertyGrid (I've posted the issues in the forum lately), I'm temporarily using Winform PropertyGrid instead. However, Winform PropertyGrid doesn't even show up when I tried to place it in RadWindow. Can you please test it or hopefully, get the RadPropertyGrid's converters to work? (Please refer to http://www.telerik.com/community/forums/wpf/property-grid/propertygrid-problems-in-2013-q2.aspx)
Thanks.

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 29 Aug 2013, 11:22 AM
Hello,

The RadWindow control is displaying in a WPF window with its AllowTransparency property set to true which disabled the rendering of any non-wpf content inside the control. To disable this property and be able to view the WinForms controls inside the RadWindow you will need to set the AllowTransparency attached property of the RadWindow. The next code snippet shows how to set that property from the code behind:
MyRadWindow window = new MyRadWindow();
RadWindowInteropHelper.SetAllowTransparency(window, false);
RadWindowInteropHelper.SetClipMaskCornerRadius(window, new CornerRadius(3));
RadWindowInteropHelper.SetOpaqueWindowBackground(window, Brushes.LightGray);
window.Show();

This MyRadWindow control is an RadWindow with a WindowsFormsHost in which a Winforms control is placed. Hope this is helpful.

Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Window
Asked by
Dodd
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or