Calendar for WinRT
Step 2 of 3: Adding Data to the Calendar

In the last step, you added the C1Calendar control to the application. In this step, you will add a DataSeries object and data for it.

Complete the following steps to add data to the calendar programmatically:

  1. Select View | Code to switch to Code view.
  1. Add the following imports statements to the top of the page:

To write the code in Visual Basic:

To write the code in C#:

  1. Add the following code just inside the MainPage class:

To write the code in Visual Basic:

To write the code in C#:

  1. Update the MainPage code so it appears like the following:

To write the code in Visual Basic:

To write the code in C#:

  1. Add the following code just under the code you just added, still in the MainPage class:

To write the code in Visual Basic:

To write the code in C#:

6.       Add the following classes just under the MainPage class:

To write the code in Visual Basic:

To write the code in C#:

In the next step, you'll examine the features of Calendar for WinRT.

What You've Accomplished

You have successfully added data to C1Calendar. In the next step you’ll observe some run-time behaviors.

See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |   Documentation Feedback