Information générale
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
How to retrieve a Binding Path
I have a TextBox with a binding to a property of an object (as shown in XAML below):
Text="{Binding Path=EmpFirst}"
In my C# code, I need to be able to determine what the Binding Path is for any given TextBox. In other words, I want to be able to refer to this TextBox, in my C# code-behind and retrieve 'EmpFirst' as the Binding Path.
Does any body know how to do this?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement