Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to retrieve a Binding Path
Message
De
15/09/2009 14:20:07
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01424596
Message ID:
01424601
Vues:
46
This message has been marked as the solution to the initial question of the thread.
>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?

There is a GetBindingExpression() method on each object. You may want to check this out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform