SDK, C# and WPF

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

Rob Pearmain(Posted 2008) [#1]
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


ziggy(Posted 2008) [#2]
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.


Rob Pearmain(Posted 2008) [#3]
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


ziggy(Posted 2008) [#4]
Be sure that the new canvas has the focus. Otherwise won't work.