Posted 18 years ago
by Dietrich Birngruber
Version: 1.0.0330
Platform: .NET 3.0
Environment: Windows Vista (32-bit)
If you put a RibbonWindow on the top edge of the screen and maximize the window, one would think that demaximizing the window would end up in the same position as before maximizing.
In fact, the window changes its position - I think it's the magic number of 28 pixels ;) - upwards. And in this case the window title bar disappears.
If you resize the window - even if only horizontally - the window title bar becomes visible again.
I also noticed, that when you change the size of a RibbonWindow by adding a pixel to the Width-Property, the window also grows in vertical direction by the magic 28 pixels.I think that this is an issue with the GlassEffect in Vista, as the effects don't occur when disabling glass.
best regards
Dietrich
In fact, the window changes its position - I think it's the magic number of 28 pixels ;) - upwards. And in this case the window title bar disappears.
If you resize the window - even if only horizontally - the window title bar becomes visible again.
I also noticed, that when you change the size of a RibbonWindow by adding a pixel to the Width-Property, the window also grows in vertical direction by the magic 28 pixels.
private void fileNewCommand_Execute(object sender, ExecutedRoutedEventArgs e) {
// Create a new document
this.CurrentDocumentData = DocumentData.CreateNewDocument();
RibbonWindow window = (RibbonWindow)ActiproSoftware.Windows.Media.VisualTreeHelperExtended.GetAncestor(this, typeof(RibbonWindow));
if (window != null)
{
window.Width++;
}
}
best regards
Dietrich