Find Replace dialog doesn't accept Input if radrichtextbox is hosted in a WinForm using ElementHost

3 posts, 0 answers
  1. Kushagra
    Kushagra avatar
    16 posts
    Member since:
    May 2011

    Posted 03 Mar 2014 Link to this post


    I am using radrichtextbox as a hosted control inside my Winform application and I have used ElementHost for this purpose and made the control as its child. Mostly everything works well with this approach. The only thing which caught my notice is that on firing ShowFindReplaceDialogCommand. The dialog doesn't accept user input as it is non modal. Now, I am aware that for making a WPF non modal window accept input when used inside an element host it needs to call EnableModelessKeyboardInterop(Window window); method. But How do I call this method in this case.

    Warm Regards,
    Kushagra Tiwari
  2. Kammen
    Kammen avatar
    312 posts

    Posted 05 Mar 2014 Link to this post

    Hello Kushagra,

    Thank you for your interest in RadRichTextBox.

    There is no easy way to access the FindReplaceDialog. However, you can easily create custom dialog and call the EnableModelessKeyboardInterop before showing it (inside the Show method). Here you can find a SDK sample of how to create custom FindReplaceDialog.

    Hope this answers your question.



    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  3. DevCraft banner
  4. Kushagra
    Kushagra avatar
    16 posts
    Member since:
    May 2011

    Posted 06 Mar 2014 Link to this post

    Thanks for the reply. It solves my issue. I have made a custom control for FindReplace dialog

Back to Top