views:

2420

answers:

3

I see some people use it, but couldn't find any explanation on the net...

Any other special symbols (other than Binding /) that you know of?

A: 

In relation to Binding Path, does this help?

http://msdn.microsoft.com/en-us/magazine/cc163299.aspx

NastyNateDoggy
Apologize, may have misunderstood the question asked :-) Leaving answer in case someone stumbles upon this for the wrong reason.
NastyNateDoggy
+3  A: 

This is shorthand for binding to the current source. For more info see here.

micahtan
So it's longhand for {Binding}. Ok, good to know.
Ray
@Ray - my thoughts exactly. If you're going to shorthand, why stop there?
micahtan
I can't argue with MSDN, but there still a difference. {Binding} cannot be used on an object itself (being two way it requires a property) while {Binding Path=.} works.
Sergey Aldoukhov
@Sergey - Do you have a code sample where {Binding} doesn't work but {Binding Path=.} does? If so, MSDN probably needs to get updated...
micahtan
Easily: var s = "test;DataContext=s;and in <TextBox Text={Binding}/> - does not work. But MSDN is not wiki...
Sergey Aldoukhov
+4  A: 

I found this WPF Binding CheatSheet a few months back and find it very useful, especially for anyone learning WPF. There are some spelling mistakes within it, but it is still quite good.

Here is a small excerpt (which is supposed to have tabular formatting):

Basic Binding   
{Binding}  Bind to current DataContext. 
{Binding Name}  Bind to the “Name” proeprty of the current DataContext. 
{Bindind Name.Length}  Bind to the Length property of the object in the Name property of the current DataContext. 
{Binding ElementName=SomeTextBox, Path=Text}  Bind to the “Text” property of the element XAML element with name=”SomeTextBox” or x:Name=”SomeTextBox”.

Direct link to CheatSheet

Ryan Versaw