if you have a background thread working, and you need to update the UI in that case we should use Dispatcher. If we don’t use Dispatcher cross thread exception will occur.