I’m building a Windows 8 app and have come to a point where I don’t understand how to solve my problem. (I’m new to C# development in general, so some things are more foreign to me not counting the new WIN-RT paradigms)
I’ve created a XAML file that displays 1 week (Sunday – Saturday) and populates each day column with the date of the month for that day (20-27 for ex.) for right now, it just makes a new Calendar object and uses the current date.
Here’s my problem:
I’d like to implement a flipview to change from week to week, forward and backwards in time (this is very similar to the functionality in the Windows 8 Calendar app)
I do not know how to move from one week to another, because most demos online use image file resources. I want to move to the same XAML file I have, with just differently populated number fields, etc.
Thank you for your time!
Since FlipView is an ItemsControl – you can use the same method you would use when populating lists – use an ItemsSource to bind to a collection of weeks and specify an ItemTemplate/DataTemplate that will display the week view.
Ultimately you might hit some issues with the fact that a calendar should not really be a list with a beginning and an end. Perhaps you could implement some pseudo-virtualization hack, but ultimately it would probably be better for you to implement your own interaction logic.