Resize applic. or splitcontainer does not fire sizechanged

Docking/MDI for WPF Forum

Posted 14 years ago by Arthur Damen
Version: 9.2.0510
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
Whren you run the next code yo uwill see that the sizechanged event is raised once during start.
After that if you resize the application nothing is raised anymore...

<Window x:Class="Window1"

    Title="Window1" Height="300" Width="450">
        <docking:DockSite x:Name="MainDockSite" >
            <docking:Workspace  HorizontalAlignment="Stretch" >
                <docking:TabbedMdiHost Name="MDIPresentationsWindow" >
                    <docking:TabbedMdiContainer Name="MDITabContainer" >
                        <docking:DocumentWindow Name="DocWIndowPage1" Title="Page1">
                            <!--<loc:UserControl1 x:Name="AA"></loc:UserControl1>-->

Imports ActiproSoftware.Windows.Controls.Docking

Class Window1

  Public Sub New()

    ' This call is required by the Windows Form Designer.

  End Sub

  Private Sub DocWIndowPage1_SizeChanged(ByVal sender As Object, ByVal e As System.Windows.SizeChangedEventArgs) Handles DocWIndowPage1.SizeChanged
    Dim b As Boolean = True 'is only fired once....
  End Sub
End Class

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
The DocumentWindow is represented by the "tab" portion of the UI. Therefore SizeChanged will only fire on it when the tab is resized.

You'd want to attach your SizeChanged event handler to your UserControl1 instance instead, since it is the root content element of the document window.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.