We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to render Custom appointments in Schedule using MVVM pattern.

How to create SfSchedule in MVVM pattern with basic features?


SfSchedule supports full data binding to any type of IEnumerable source. When a binding is established and the data changes, the UI elements that are bound to the data can reflect changes automatically and similarly when UI changes can be reflected in data object.


This section explains binding ItemsSource property of SfSchedule in MVVM pattern.


Note: Before enter this section you should have clear idea about databinding support which is the one of the major concept used to bind the custom collection. Please refer the User Guide document to get clear idea about data binding support.


Creating SfSchedule in MVVM pattern


  1. Create a WPF application and add the SfSchedule control to it.



  1. In order to bind the data source to ItemsSource property first create a custom class (Model) for mapping Schedule appointments.



  1. In Next step define properties to pass the data source to ItemsSource of SfSchedule control in view model.

             ItemsSource Used to pass the data source of custom SfSchedule appointments.



Finally set the DataContext to view model Class and pass the required collection to SfSchedule.





Sample Link:


Article ID: Published Date: Last Revised Date: Platform: Control:
5748 11/23/2015 11/23/2015 WPF SfSchedule
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon