¿Qué hace "{Binding Path=.} "mean in WPF binding?


¿Qué significa {Binding Path=.} en un enlace WPF?

Veo que algunas personas lo usan, pero no pude encontrar ninguna explicación.

¿Hay otros símbolos especiales en la sintaxis de enlace (aparte de {Binding /})?

Author: g t, 2009-07-01

2 answers

Esta es una abreviatura para enlazar a la fuente actual. Para más información ver aquí.

 43
Author: micahtan,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-06-30 22:02:16

Encontré esto CheatSheet Vinculante WPF hace unos meses y lo encuentro muy útil, especialmente para cualquiera que esté aprendiendo WPF. Hay algunos errores de ortografía dentro de él, pero todavía es bastante bueno.

Aquí hay un pequeño extracto (que se supone que tiene formato tabular):

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”. 

Enlace directo a CheatSheet

 54
Author: Ryan Versaw,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-07-01 14:21:29