How to use GameContextWinforms?


#1

I try to use xenko engine for winform intergration.

so, I follow step below,

  1. create project (window platform).
  2. open visual studio and modify code.
  3. var context = SiliconStudio.Xenko.Games.GameContextWinforms(myPanelControl);
    using(var game = new Game())
    {
    game.Run(context);
    }

it seems be works well but, xenko renderer not fit the panel size.

I set my panel size to 500x500, but xenko render area is oversized.

am i use GameContextWinforms to wrong?

best regards.