XamlReader.Load in a Background Thread. Is it possible?
A WPF app has an operation of loading a user control from a separate file using XamlReader.Load() method: StreamReader mysr = new StreamReader(pathToFile); DependencyObject rootObject = XamlReader.Load(mysr.BaseStream) as DependencyObject; ContentControl displayPage = FindName("displayContentControl") as ContentControl; displayPage.Content = rootObject; The process takes some time due to the size of the file, so UI becomes frozen for several seconds. For keeping the app responsive I try to use a Background thread for performing the part of operation that is not directly involed in UI updating.