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
, , , . , , - XAML, XamlReader, , , - . , , , , , (, , ).
, , ... DTO, . WPF : , ? WPF DataContractSerializer, .
DataContractSerializer
, , XAML. , , , - XAML, - . XamlReader . , , .
XamlReader
, . .
Source: https://habr.com/ru/post/1768098/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1768093/uilabel-backgroundcolor-in-uitableviewcell-always-reverts-to-initial-value&usg=ALkJrhgIIL7534QFN59hhbUJ5H0Rwf_WbwLink exchange check - phpSpecify IBatis request timeout - javaJQuery: IE window width - jqueryHow to get time from google javascript api - javascriptConclusion Flash CS5 on OSX - flashHow will an object with a value type and a reference type be stored in .NET? - c #Сравнение только даты с DateTime С# - c#How to force SQL Server Group to use column order when grouping? - sqlPowerShell, можно ли перевести SID на ntaccount, если вы не являетесь частью домена? - powershellAll Articles