Issues with Document window

Docking/MDI for WPF Forum

Posted 15 years ago by Anurodh Ora
Version: 4.5.0486
Avatar
Hi,

I am creating Document window programmatically and displaying it in Standard MDI.

#1.

Document window lose the focus on Maximizing or restoring it.

#2.

Document window always opening in restore mode even after setting the property
AreWindowsMaximized="True"

#3.

The Tool window size does not remain same on reopen. For example, say I have 2 tool windows(1 of them is fixed size) in a document window and I am closing and Opening tool windows on the button click. Now when I want open Both tool window simultaneously then the Fixed size tool window do not take size which i have assign at design time. Both share the equal width.

I am also sending a sample project which demonsrtate the above issues.

please look into these issues.


Thanks

Anurodh

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Anurodh,

1) This is only happening in your sample because you don't have any focusable controls in your MDI window. If you replace the TextBlocks with TextBoxes, focus stays with the MDI window.

2) This is fixed for the next maintenance release.

3) It's working fine with the code here. I think the problem is that you are calling too many methods unncessarily and it corrupts the stored layout info. Change you RibbonWindow1 code to this instead:
private void check1_Click(object sender, RoutedEventArgs e)
{
    docWindow.xyz.Close();
    docWindow.abc.Activate();
}

private void check2_Click(object sender, RoutedEventArgs e)
{
    docWindow.abc.Close();
    docWindow.xyz.Activate();
}

private void check3_Click(object sender, RoutedEventArgs e)
{
    docWindow.abc.Activate();
    docWindow.xyz.Activate();
}


Actipro Software Support

The latest build of this product (v24.1.1) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.