System.Windows.Data 错误:4:找不到与引用“RelativeSource FindAncestor,AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar',AncestorLevel='1''的绑定源。绑定表达式:路径=方向;数据项=空;目标元素是'VsMenuItem'(名称='');目标属性是“NoTarget”(类型“对象”) System.Windows.Data 错误:4:找不到与引用“RelativeSource FindAncestor,AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar',AncestorLevel='1''的绑定源. BindingExpression:Path=DataContext.DockLocation; 数据项=空;目标元素是'VsMenuItem'(名称='');目标属性是“NoTarget”(类型“对象”) System.Windows.Data 错误:4:无法通过引用“RelativeSource FindAncestor,AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar',AncestorLevel='1'”找到绑定源。BindingExpression:Path=DataContext.DockLocation; 数据项=空;目标元素是'VsMenuItem'(名称='');目标属性是“NoTarget”(类型“对象”)
如何解决这个问题?