private void ListBox_OnInitialized2(object sender, EventArgs e) { var pageSum = ""; var test = new Api.Transactions.history.Sells(); data = test.Request(); var items1 = new List<ItemList>(); ListBoxProvider provider = new ListBoxProvider(items1, data); provider.fillListBox(); ListBox2.ItemsSource = items1; }
private void updateListBox(dynamic data) { var items = new List<ItemList>(); ListBoxProvider provider = new ListBoxProvider(items, data); provider.fillListBox(); ListBox.ItemsSource = items; ListBox.ScrollIntoView(ListBox.Items[0]); }
private void ListBox_OnInitialized(object sender, EventArgs e) { data = getSearchResult(1); var pageSum = ""; var items = new List<ItemList>(); ListBoxProvider provider = new ListBoxProvider(items, data); provider.fillListBox(); ListBox.ItemsSource = items; }