DockControl for WPF
条件付きドッキング
タスク別ヘルプ > ドッキング位置を無効にする方法 > 条件付きドッキング

特定の C1DockTabControl または C1DockTabItem に対して条件付きのドッキングを行うには、Source プロパティと Target プロパティを使用します。たとえば、c1DockTabControl2 の内側に c1DockTabItem1 をドッキングできないようにするには、次のコードを記述します。

XAML
コードのコピー
private void dockControl1_PickerLoading(object sender, PickerLoadingEventArgs e)
{
    if (e.Source == c1DockTabItem1 && e.Target == c1DockTabControl2)
    {
        // ドッキングをすべて無効にします
        e.ShowBottomInnerPart = false;
        e.ShowLeftInnerPart = false;
        e.ShowRightInnerPart = false;
        e.ShowTopInnerPart = false;
        e.ShowOverInnerPart = false;
    }
}