Resizing RenderWindow in WPF


06-08-2013 07:35:56

Hello, everybody!
I'm using this code ... -WPF-proje to make new WPF project with Ogre in the ImageBox. So the main problem for me is how to resize picture(RenderWindow) like resizing RenderWindow in C# with a help of WindowMovedOrResized().

Also I've tried to put this function in ResizeEvent

private void RenterTargetControl_SizeChanged(object sender, SizeChangedEventArgs e)
if (_ogreImage == null) return;
_ogreImage.ViewportSize = e.NewSize;


But my picture disappears...

P.S. I've started to learn Mogre recently.