Пример #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.  The Parameter
 /// property is typically used to configure the page.</param>
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     // This loads the search terms but which aren't needed for the phone
     // but it also loads the object names that are needed for syntax highlighting.
     DemoItemsData di = new DemoItemsData();
     await di.GetSearchTerms();
 }
        public ItemDetailGridControl(string searchString)
        {
            this.InitializeComponent();
            DemoItemsData data = new DemoItemsData();

            data.SetSearchFilter(searchString);
            this.mainGridView.ItemsSource = data.DemoItems;
            this.mainGridView.ItemClick  += this.Grid_Tapped;
        }