MVVM Support

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

  • Posted 10 September 2017, 10:55 am EST

    <p>Does this gride provide for MVVM support ?</p><p>Can you provide a sample code for the same.</p><p>Balachander</p>
  • Replied 10 September 2017, 10:55 am EST

    <p>Hi,</p><p>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:</p><p> <br></p><p>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).</p><p>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.<br></p>
Need extra support?

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

Learn More

Forum Channels