AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar',System.Windows.Data错误:4:无法找到引用'RelativeSource FindAncestor,RelativeSource AncestorLevel=‘1’绑定的源代码。BindingExpression:Path=Orientation;DataItem=null;目标元素是'VsMenuItem‘(Name='');目标属性是'NoTarget’(类型'Object') System.Windows.Data错误:4:无法找到与引用'RelativeSource FindAncestor,VsMenuItem AncestorLevel=‘1’绑定的源代码。BindingExpression:Path=DataContext.DockLocation;DataItem=null;目标元素是'VsMenuItem‘(Name='');目标属性是'NoTarget’(类型'Object') System.Windows.Data错误:4:无法找到与引用'RelativeSource FindAncestor,AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar',AncestorLevel=‘1’绑定的源代码。BindingExpression:Path=DataContext.DockLocation;DataItem=null;目标元素是'VsMenuItem‘(Name='');目标属性是'NoTarget’(键入'Object')
怎么解决这个问题?
发布于 2013-03-15 18:24:49
我设法找到了这个问题的答案,因为我必须将app.config文件字符串连接设置到正确的数据库,但是它总是找不到路径,所以我得到了app.config的目录路径,并在代码中硬编码了它。
https://stackoverflow.com/questions/14849863
复制相似问题