Submitting custom WPF controls on top of WCF or similar

I am creating an MVVM-style application where the actual views (UserControls) are stored remotely and hopefully are sent through the WCF service to my main application window. I do this so as not to reinstall the application every time I add a new view. However, when I try to return User Control from my WCF service, I get an error message:

System.Runtime.Serialization.InvalidDataContractException: Type 'System.Windows.Input.TouchDevice' cannot be serialized.

I am wondering if there is any way around this or if people have implemented something similar in a different way?

Thanks, Ochowie

+3
source share
2 answers

, , , . , , - XAML, XamlReader, , , - . , , , , , (, , ).

+2

, , ... DTO, . WPF : , ? WPF DataContractSerializer, .

, , XAML. , , , - XAML, - . XamlReader . , , .

, . .

0

Source: https://habr.com/ru/post/1768098/


All Articles