Prevent document from closing in DockingManager
问题 Here's a sample, which uses DockingManager (a.k.a AvalonDock) from Extended WPF Toolkit. View model: public class Person { public string Name { get; set; } public bool CanClose { get; set; } } View: <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock" xmlns:local="clr-namespace:WpfApplication2"> <Grid> <xcad:DockingManager