static void AddEntries(object state) { SomeCollection sc = (SomeCollection)state; for (int x = 0; x < 20; x++) { Trace.WriteLine("adding"); sc.Add(x); Trace.WriteLine("added"); Thread.Sleep(x * 3); } }
public async void OnNavigatedTo(INavigationParameters parameters) { await Task.Run(() => { Task.Delay(100); SomeCollection.Add(new ComplexType { Title = "title1", Note = "note1" }); SomeCollection.Add(new ComplexType { Title = "title2", Note = "note2" }); SomeCollection.Add(new ComplexType { Title = "title3", Note = "note3" }); }); }
private void CommandMethod(object parameter) { SomeCollection.Add("Some dummy string"); }