Accessing UI (Main) Thread safely in WPF Accessing UI (Main) Thread safely in WPF wpf wpf