The calling thread must be STA, because many UI components require this The calling thread must be STA, because many UI components require this wpf wpf