Jowen
Jowen

Reputation: 5383

"Property 'Path' does not have a value"

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

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

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!!

Upvotes: 1

Views: 1879

Answers (2)

kcho
kcho

Reputation:

Thanks, that was just what i need to get my RD working, the fix was from:

CommandTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"

to:

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

Upvotes: 0

Ryan Lundy
Ryan Lundy

Reputation: 210140

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) Readme

Try changing your tag to

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

Upvotes: 3

Related Questions