Que signifie «{Binding Path =.}» Dans la liaison WPF?

Que signifie {Binding Path=.} Dans une liaison WPF?

Je vois que certaines personnes l’utilisent, mais je n’ai trouvé aucune explication.

Existe-t-il d’autres symboles spéciaux dans la syntaxe de liaison (autre que {Binding /} )?

Ceci est un raccourci pour la liaison à la source actuelle. Pour plus d’infos, voir ici .

Il y a quelques mois, j’ai trouvé cette CheatSheet WPF Binding et je la trouve très utile, en particulier pour ceux qui apprennent WPF. Il y a des fautes d’orthographe, mais c’est quand même assez bon.

Voici un petit extrait (censé avoir un format tabulaire):

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

Lien direct vers CheatSheet