Ejemplo n.º 1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            var id   = e.Parameter as DateTime?;
            var data = await DataSources.GetIllnessAsync(id.GetValueOrDefault());

            name.Text       = data.Name;
            decription.Text = data.Description;
            date.Text       = data.Date.Date.ToString();
        }