السلام عليكم أخوتي الأفاضل
أعمل على تطبيق لوندوزفون
أريد فضلا ان تظهر في listbox كل class التي يكون لـ Title قيمة معينة (وهي القيمة القادمة من صفحة أخرى من خلال النفقيشن) بدل من أن يظهر لي كل classes
حيث أن
class Reminder يتضمن المتغيراتTitle ,BeginTime
وشكرا لكم
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Scheduler;
namespace ReminderSample
{
public partial class vaccination : PhoneApplicationPage
{
public vaccination()
{
InitializeComponent();
}
public static string param1Value = "";
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
NavigationContext.QueryString.TryGetValue("selectedEvent", out param1Value);
textBlock1.Text = param1Value;
}
IEnumerable<Reminder> reminders;
private void ResetItemsList()
{
// Use GetActions to retrieve all of the scheduled actions
// stored for this application. The type <Reminder> is specified
// to retrieve only Reminder objects.
reminders = ScheduledActionService.GetActions<Reminder>();
// Update the ReminderListBox with the list of reminders.
// A full MVVM implementation can automate this step.
ReminderListBox.ItemsSource = reminders;
}
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
// Reset the ReminderListBox items when the page is navigated to.
ResetItemsList();
}
}
}