Dovrebbe essere dg.Dispatcher.BeginInvoke ...