MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

C#/XAML for HTML5 #31

Open wilfreds opened 9 years ago

wilfreds commented 9 years ago

Hi,

Continued from the old forum: http://forums.lhotka.net/forums/t/12900.aspx

I asked this question in the CSHTML5 forum:

Any plans on implementing these?: IEditableObject, INotifyDataErrorInfo, INotifyPropertyChanging , System.ComponentModel.BackgroundWorker, DoWorkEventHandler, RunWorkerCompletedEventHandler, ProgressChangedEventHandler , System.Runtime.Serialization.DataContractSerializer , LinkedList

http://forums.cshtml5.com/viewtopic.php?f=4&t=122

And got this answer:

  • Validation: yes, this is on the roadmap for mid-2016. It will natively support INotifyDataErrorInfo, INotifyPropertyChanging, and probably also IEditableObject.
  • Background work: this is not possible because of the limitations of JavaScript running in the browser. >It is not possible in JavaScript to create background threads that share objects with the UI thread. >Therefore unfortunately the following classes cannot be supported: BackgroundWorker, >DoWorkEventHandler, RunWorkerCompletedEventHandler, ProgressChangedEventHandler.
  • DataContractSerializer: at the moment CSHTML5 only supports the XmlSerializer. We plan to support the DataContractSerializer as well, by the end of 2016.
  • LinkedList: yes, this is on the roadmap for 2016 as well.

To ensure faster implementation of those features, please vote for them on UserVoice at: http://cshtml5.uservoice.com/

So, vote for Validation :smiley: http://cshtml5.uservoice.com/forums/274799-c-xaml-for-html5-feature-requests/suggestions/9204063-add-support-for-system-componentmodel-dataannotati

BackgroundWorker will not be supported. Can that be solved?

Is it true that DataContractSerializer is not needed because MobileFormatter can be used?

Wilfred

rockfordlhotka commented 9 years ago

It should be the case that MobileFormatter can be used. We created that to support platforms where BinaryFormatter and NDCS don't exist.

Btw, DCS would never work because it doesn't do deep graph serialization.