Вопрос

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

Это было полезно?

Решение

Should be totally redundant when you have DataTemplate.DataType.

(Example)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top