1

Possible Duplicate:
Special symbols in WPF binding - what does “{Binding Path=.}” mean?

I am not getting the meaning of following code -

<DataTemplate> <Label> <Hyperlink Command="{Binding Path=.}"> <TextBlock Text="{Binding Path=Header}"/> </Hyperlink> </Label> </DataTemplate> 

Can anyone explain it.

0

2 Answers 2

3

It is used to bind to the current source . For more info take a look here Binding Path hope this helps

Sign up to request clarification or add additional context in comments.

Comments

3

Binding basically you are going to binding to ViewModel class. For e.g. you have an class called person and it has property called "Name". What you need to do here is, So it will bind to your Class called Person and it's property called "Name".

<TextBlock Text="{Binding Path=Name}"/> 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.