My goal was to have a ListBox that changed its template according to the data Now I did this with ItemTemplateSelector and the templates were selected correctly but my problem i