Can't set back the position for the RibbonWindow

Jun 22, 2010 at 4:16 PM
Edited Jun 22, 2010 at 4:22 PM

Hi I am trying to do the following:

this.window.Left = _config.Left; 

where window is a RibbonWindow and _config.Left is the value saved from window.RestoreBounds

Problem is that it always subtracts 4 pixels from the value I set... if I show the window several times it goes out of the screen.

I am targeting .NET 3.5 and using Fluent 1.3 (Windows XP)

Any tips?

Jun 22, 2010 at 6:10 PM

I hust handle SizeChanged and LocationChanged events, saving top, left, width and height as appropriate. No trouble at all setting them  back.

 

Jun 22, 2010 at 6:25 PM
For me it also works perfect if I use a normal Window (instead of RibbonWindow). That means the RibbonWindow has an issue :)