Polymorphism in binding?
问题 I have a POCO objects (public class with lots of public fields). public class Poco { public string name1; public string name2; public bool isName1Used; } Now i need to render a list of objects names, but with one condition: depending on bool, should be used name1 or name2. So, i made inherited class and add some functionality there public class Item : Poco { public string Name { get { return isName1Used ? name1 : name2; } } How can i now say to binding engine that it should bind to the Name?