Thursday, February 24, 2011

Data Templates vs. Code-behind

In my latest pet project, I'm making a folder viewer. After reading up on data templates, I thought I'd use them to display the folders in a tree and their stats when the relevant node is is selected. I soon found out that data templates weren't entirely suited to this particular purpose, especially when one would be calling methods recursively. In the end, I decided to ditch the data templates and use code-behind.

2 comments: