public async void StartTest(TestMethod test) { await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async() => { _currentTest = new TestDescription { Name = test.Name }; _currentGroup.Add(_currentTest); await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { lstTests.ScrollIntoView(_currentTest); }); }); }
public void StartTest(TestMethod test) { Dispatcher.BeginInvoke(() => { TestDescription testDescription = new TestDescription { Name = test.Name }; _currentTest = testDescription; _currentGroup.Add(_currentTest); Dispatcher.BeginInvoke(() => { unitTests.ScrollTo(testDescription); }); }); }
public async void StartTest(TestMethod test) { await Dispatcher.InvokeAsync(async() => { _currentTest = new TestDescription { Name = test.Name }; _currentGroup.Add(_currentTest); _tests.Add(_currentTest); await Dispatcher.InvokeAsync(() => { lstTests.ScrollIntoView(_currentTest); }); }); }