Use DataForm ViewModel in Xamarin.Forms and WPF

2 posts, 0 answers
  1. Jon
    Jon avatar
    8 posts
    Member since:
    Aug 2015

    Posted 31 Mar Link to this post

    I am doing some research on porting an old WPF app in a way that we could have a common layer for the Model and ViewModel so we can have an Android app using Xamarin Forms (maybe later iOS) and a WPF app for Windows 7 users.  The DataForm would be perfect.  Is it possible to have data annotations that would work for both or do you have to duplicate effort here.
  2. Tsvyatko
    Tsvyatko avatar
    832 posts

    Posted 05 Apr Link to this post

    Hello Jon,

    Thank you for contacting us! Yes, you can share the viewmodel between WPF and Xamarin Forms apps.
    Our Xamarin Forms components share their code through portable libraries including the attributes used by DataForm. 

    In order to us the attributes you would need to add reference the the following assemblies and its xamarin dependencies if needed:
     - Telerik.XamarinForms.Common.dll
     - Telerik.XamarinForms.DataControls.dll

    Please, find the iamgeof the portable profile that these assemblies support -

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top