Question

Ok I found this wonderful idea on code project. link

The idea is great add all your data templates to collection in your list box. Tell each one what to look for (a type) and what data template to use when it runs into that type. The problem is that the included source code is different from the on page code and I can't seen to get any combination of it to work. Even adding the missing quotation marks and changing the type to a local class instead of the non-accessible string and int32 classes.

So the question is. What am I doing wrong?

Bryan

Was it helpful?

Solution

Should be totally redundant when you have DataTemplate.DataType.

(Example)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top