Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Hosting a render window in a WPF Control  (Read 6397 times)

0 Members and 1 Guest are viewing this topic.

Megatron

  • Newbie
  • *
  • Posts: 22
    • View Profile
Hosting a render window in a WPF Control
« on: July 04, 2010, 01:12:32 am »
Hi there, I was wondering if someone might know how to do this.

I'm making a game with SFML as the rendering screen and using WPF as the overlayed GUI. I know how to set up an SFML RenderWindow inside a Windows Form Control by passing it a Handle for the form, but I'm not sure how to do the same in WPF. I tried using a WindowsFormHost to host a WindowsForm Control (that holds the render window) inside WPF, but the problem is that a WindowsFormHost control always seems to be drawn as the top layer, meaning my WPF controls are hidden behind the render window. Theres some hacky ways to get around this, but if it's possible, I'd really like to be able to host a SFML render window directly inside of a WPF control instead of having to use a WindowsFormHost control. Does anyone know how to do this?

Thanks.

 

anything