SDK, C# and WPF

Blitz3D SDK Forums/Blitz3D SDK Programming/SDK, C# and WPF

Hi,

I have developed a user interface in C# using WPF (Windows Preentation Foundation). I want to overlay these WPF controls over a Blitz3D window.

Is it possible to do this, I think basically setting the background of the window to the B3D render and having windows controls on top?

Cheers

Well,
If the canvas is the windows background, and you set the backgroundcolor of the components to transparent, it should work. Haven't tested it.

Hi Ziggy,

Yes, I got it all working in Vista (XP was horrible), but then I did it so I had a WPF form showing and then flipped to a Windows Form that had been set by B3D to be the canvas.

However, there is a bug (See Bug Reports) so that Keys stop working using this method, hopefully it will be fixed soon.

Cheers

Be sure that the new canvas has the focus. Otherwise won't work.