Open RadWindow in WindowsForm App

2 posts, 0 answers
  1. Mikel
    Mikel avatar
    21 posts
    Member since:
    Feb 2014

    Posted 04 Oct 2016 Link to this post

    I need to use that function:


    If window object is "RadWindow" type, that method does not accept, becouse that is not of type "System.Windows.Window"
    How can I solve it? Or is there other way to open wpf Telerik Window from WindowsForm App?

  2. Nasko
    Nasko avatar
    706 posts

    Posted 06 Oct 2016 Link to this post

    Hi Mikel,

    RadWindow is hosted in WPF Window and I would suggest getting the parent Window that hosts the RadWindow and passing it as paremeter to the EnableModelessKeyboardInterop method. This should be done after RadWindow is loaded - so you can hook to the Loaded event of get the parent WPF Window as shown below:
    void radWind_Loaded(object sender, RoutedEventArgs e)
        var radWindow = sender as RadWindow;
        var window = Window.GetWindow(radWindow);

    Hope this helps.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top