Min / Max / Restore broken

Ribbon for WPF Forum

Posted 14 years ago by SledgeHammer01
Version: 10.1.0522
Platform: .NET 4.0
Environment: Windows XP (32-bit)
This is on XP with .NET 4.0. 32-bit. Default XP blue theme. Default XP blue theme system metrics.

1) Open Document Editor (like Word) sample -- in external window
2) Switch to blue theme / turn off scenic layout
3) Minimize the window to the task bar
4) Restore the window from the task bar

You'll notice all 4 corners are blackened into squared corners (i.e. the window region is not right).

EDIT: Also happens with scenic layout and all 4 themes you have in the sample app.

Comments (2)

Posted 14 years ago by SledgeHammer01
When you verify this fix... please also verify for this situation:

public const int SW_RESTORE = 9;

private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

public static void RestoreWindow(Window Wnd)
HwndSource hWndSource = (HwndSource)PresentationSource.FromVisual(Wnd);

if (hWndSource != null)
ShowWindow(hWndSource.Handle, SW_RESTORE);

We use this function to "un-minimize" a popup window from the taskbar (i.e. a maximized window gets restored maximized, etc). The fix should probably fix both situations since they happen the same way, but you never know :).

[Modified at 06/11/2010 05:44 PM]
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Thanks we've fixed this for the next maintenance release. The code to update the clip region was using the Window's WindowState property to ensure it was "Normal" however the Window's property wasn't updated by the time the clip region update method was called. We changed it to use an API call to check window state and that fixed it.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.