MVVM Support

Posted by: mlcmds on 10 September 2017, 10:55 am EST

  • Posted 10 September 2017, 10:55 am EST

    Does this gride provide for MVVM support ?

    Can you provide a sample code for the same.


  • Replied 10 September 2017, 10:55 am EST


    Sure, you can use MVVM design principles with Spread WPF-Silverlight.  There's not specific support for it in the Spread's API, but XAML is very amenable to that approach; you just need to write your code following the pattern and avoid making dependencies that don't follow it.  Here's a great article about using MVVM to design a WPF application:

    Actually, Spread WPF-Silverlight itself is designed that way, with clean separation of the document part (Workbook/Worksheet are like view models) from the UI part (GcSpreadSheet/SpreadView/SheetView are like the views).

    We don't have any samples which use MVVM to implement the interface, but Spread WPF-Silverlight should work just like other WPF and Silverlight controls in that respect.  If you find a sample for MVVM using WPF or Silverlight controls, then you can follow the same pattern using Spread.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels