“属性“路径”没有值” [英] "Property 'Path' does not have a value"

查看:45
本文介绍了“属性“路径”没有值”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下xaml填充dataContext:

I'm using the following xaml to fill the dataContext:

DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"

应用程序运行良好,但是Cider抱怨我必须设置Path属性。
我对整个对象感兴趣,但对特定属性不感兴趣。

The application works fine, but Cider complains that I must set the Path property. I'm interested in the entire object, and not a specific property though.

我希望有一种方法可以重新获得设计师的支持!

I hope there's a way to get the designer support back!!

推荐答案

在此处查看第2.3.8.7节(您需要向下滚动):

Have a look at section 2.3.8.7 here (you'll need to scroll down a bit):

Visual Studio 2008 Service Pack 1(SP1)自述文件

尝试将标签更改为

DataContext="{Binding RelativeSource={RelativeSource TemplatedParent},Path=.}"

这篇关于“属性“路径”没有值”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆