public void RefreshGridWithSearchResults(string searchString) { ItemDetailGridControl gc = new ItemDetailGridControl(searchString); this.mainGrid.Children.Remove(this.mainGrid.Children[0]); this.mainGrid.Children.Add(gc); }
public MainPage() { this.InitializeComponent(); ItemDetailGridControl gridControl = new ItemDetailGridControl(); gridControl.LeftMargin = new GridLength(55); this.mainGrid.Children.Add(gridControl); MainPage.Current = this; }