title: Is there a way to handle pin/unpin events devexpress LayoutPanel
body: <p>I have some LayoutPanels inside a LayoutGroup. I need to handle the pin/unpin events so that I can check/uncheck a checkbox control somewhere in the UI. I tried something like :</p>
  
  <pre><code> &lt;dxd:LayoutPanel x:Name="OverviewPanel"
                               ItemWidth="200"
                               Caption="{Binding Source={StaticResource MainWindowResources}, Path=Resource.Overview}"
                               ShowCloseButton="False"
                               dxd:DockLayoutManager.DockItemCollapsed="OverviewPanel_DockItemCollapsed"
                               AllowDrag="False"
                               AllowFloat="False"
                               AllowContextMenu="False"
                               Padding="1"
                               dxd:AutoHideGroup.AutoHideType="Left"
                               &gt;
                      &lt;TextBox BorderThickness="0" /&gt;
                  &lt;/dxd:LayoutPanel&gt;
  </code></pre>
  
  <p>and in code behind:</p>
  
  <pre><code>  private void OverviewPanel_DockItemCollapsed(object sender, DevExpress.Xpf.Docking.Base.DockItemCollapsedEventArgs e)
      {
          cOverview.IsChecked = false;
      }
  </code></pre>
  
  <p>This didn't work.</p>
  
  <p>The parent of the LayoutGroup is another LayoutGroup and all of them are inside a DockLayoutManager.</p>