Hi
How can i bind a text/json file to calendar day in my app so whenever the user choose a date and month it takes them to straight to particular text/json page of that day Exp. if the page title for 23/July is "Showing Mercy" if the user sets the calendar control in the app to the above date it will take the user straight to the above page title.
Note: My project folder contains 365 text/json files
How can i implement this in my app, see my code below
In the MainPage.xaml:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <toolkit:DatePicker Name="datapicker"/> </Grid>
In the MainPage.xaml.cs:
public MainPage() { InitializeComponent(); this.datapicker.ValueChanged += new EventHandler<DateTimeValueChangedEventArgs>(picker_ValueChanged); } void picker_ValueChanged(object sender, DateTimeValueChangedEventArgs e) { DateTime date = (DateTime)e.NewDateTime; string s=date.ToString("MM-dd-yyyy"); this.NavigationService.Navigate(new Uri("/" + s + ".xaml", UriKind.Relative));//text/json file for the particular day displayed here }
Reply soon thank you in advance