Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
865
Floating Content Pane Header MouseDoubleClick event does not fire
posted

Infragistics WPF 11.2

VS2010

.NET 3.5

I have a ig content pane in a ig doc manager and i have FloatingWindowDoubleClickAction="ToggleDockedState" which means that when I double-click the header of the docked content pane, it jumps out of the doc manager and when I double-click the floating content pane, it jumps back into the doc manager. This is exactly what I want.

My problem is that I need to capture the re-dock event but don't seem to be finding the correct event handler. Neither the mousedoubleclick event for the content pane or the doc manager fires when i click the header to re-dock the content pane.

What am i missing?

Thanks.

Allen

Parents
No Data
Reply
  • 28407
    Verified Answer
    posted

    HI,

     You could wire up the ContentPane's ExecutingCommand event and check for the ToggleDockedState Command.

     Here a code snippet:

     

     private void cp1_ExecutingCommand(object sender, Infragistics.Windows.Controls.Events.ExecutingCommandEventArgs e)         {            

                if (e.Command.Name == "ToggleDockedState")             {                 ContentPane cp = sender as ContentPane;                               MessageBox.Show(e.Command.Name);             }         }

    Sincerely,
     Matt
    Developer Support Engineer

Children