Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

DataTemplate for class defined in another assembly not loading

$
0
0

A little background, I am working on a client server application using MVVM.

I have a common assembly that contains the models.

In my client solution I have a WPF Controls library that defines a data templates for the models in the common assembly.

The client application references the WPF controls library. When I run the application the data templates are not found.

I did some researching in reference source and found that Content Presenter will attempt to find the Data Template using a DataTemplateKey. The problem here is that DataTemplateKey use  the data type's (Model in the common assembly) assembly in its implementation of Resource Key.


Viewing all articles
Browse latest Browse all 18858


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>