bryan_z
asked on
How do you databind in WPF to a local variable
In my code-behind, I have a variable
public class X
{
private String foo;
}
What is needed in the class and the XAML form to make it data bound?
What is the binding syntax for the XAML?
public class X
{
private String foo;
}
What is needed in the class and the XAML form to make it data bound?
What is the binding syntax for the XAML?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Both articles provided several good details on data bindings but where not complete and directly associated to the question. I did use them to find a 3rd article which had the specific information regarding the object data binder.
ASKER
Thanks for the information but neither article provided me specifically what I was looking for. In the end I found the following article which provided the details:
http://www.wrox.com/WileyCDA/Section/Windows-Presentation-Foundation-WPF-Data-Binding-with-C-2005.id-305562.html
I have included a snippet of what i did to get things working.
Open in new window