Winform PropertyGrid in RadWindow

2 posts, 0 answers
  1. Dodd
    Dodd avatar
    44 posts
    Member since:
    Dec 2012

    Posted 26 Aug 2013 Link to this post

    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.
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 29 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top