I have this sample code:
<ControlTemplate Content="{Binding .}"/>
What does the point mean here relating to the binding?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
.(period) of the binding refers to the binding path, and simply tells it to bind to the current source (i.e. inherited DataContext).From the MSDN page:
Also note that
Path=can be omitted if Path is the first parameter, so your code means exactly the same. I tend to prefer just the{Binding}syntax, though it’s up to you.