Monday, October 08, 2007

Object binding with WPF

Just learn from a hardway (by wasting 1.5 hours) that when object binding to a control in WPF, only properties are presentable using DataTemplate. I used this before:

public string ProductCode;

and couldn't get the data displayed. Turns out I have to do:

private string mProductCode;
public string ProductCode ....
.................


Well, at least I got it solved.

0 Comments:

Post a Comment

<< Home