ComponentOne DockControl for WPF
DockControl for WPF Task-Based Help / How to Disable Certain Dock Positions
In This Topic
    How to Disable Certain Dock Positions
    In This Topic

    You can disable the user’s ability to dock in certain directions inside the PickerLoading event. For example, to disable docking on the left outer edge of a C1DockControl perform the following steps.

    1. Add a C1DockControl and some child C1DockTabControls to your page.
    2. Subscribe to the PickerLoading event on C1DockControl.
      XAML
      Copy Code
      <c1:C1DockControlName="dockControl1"PickerLoading="dockControl1_PickerLoading" />
      
    3. In code, set any number of the PickerLoadingEventArgs properties you wish to disable showing certain parts of the dock picker. For example, to disable docking on the left outer edge you would set the e.ShowLeftOuterPart property to False.
      C#
      Copy Code
      private void dockControl1_PickerLoading(object sender, PickerLoadingEventArgs e)
      {
          // disable docking on the outer left edge
          e.ShowLeftOuterPart = false;
      }