private void FrameworkElement_OnLoaded(object sender, RoutedEventArgs e) { System.Diagnostics.Trace.CorrelationManager.StartLogicalOperation("LogicalOperation"); Task.Factory.StartNew(() => { }); Task.Factory.StartNew(() => { }) .ContinueWith(t => { }, TaskScheduler.FromCurrentSynchronizationContext()); Task.Factory.StartNew(() => { }) .ContinueWith(t => { }, TaskScheduler.Default); var g = (Grid) sender; var v = new GisPreviewView(); g.Children.Add(v); System.Diagnostics.Trace.CorrelationManager.StopLogicalOperation(); }
private void FrameworkElement_OnLoaded(object sender, RoutedEventArgs e) { var g = (Grid)sender; if (g.Dispatcher.CheckAccess()) { var v = new GisPreviewView(); g.Children.Add(v); } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.