Version

Prevent End Users From Resizing Floating Panes

When your end user floats a pane, xamDockManager™ creates a PaneToolWindow object to host the pane. Just like any stand-alone Window, your end user can resize the pane tool window. If you want to prevent your end user from resizing a pane tool window, you can handle the ToolWindowLoaded event and set the pane tool window’s ResizeMode property to NoResize.

The following example code demonstrates how to prevent your end user from resizing floating panes.

In Visual Basic:

Imports Infragistics.Windows.DockManager.Events
...
'You can attach this event handler to the ToolWindowLoaded event in XAML or in the code-behind.
Private Sub xamDockManager1_ToolWindowLoaded(ByVal sender As Object, ByVal e As PaneToolWindowEventArgs)
    e.Window.ResizeMode = ResizeMode.NoResize
End Sub
...

In C#:

using Infragistics.Windows.DockManager.Events;
...
//You can attach this event handler to the ToolWindowLoaded event in XAML or in the code-behind.
private void xamDockManager1_ToolWindowLoaded(object sender, PaneToolWindowEventArgs e)
{
    e.Window.ResizeMode = ResizeMode.NoResize;
}
...