Showing a WPF window after the binding has been performed

I have a WPF window that is shown after clicking a button on the screen. The window builds a table dynamically using an XmlDataProvider. The problem I'm experiencing is that on calling the Show() method, the window is shown in a collapsed mode for a very brief amount of time and then it becomes bigger as the data from the XML file gets populated. Is there any way to delay the display of the window until the data has been populated in order to avoid this unpleasant visual effect?

Thanks in advance for your input!

--Nacho

Answers


Need Your Help

vary controller based upon device

asp.net-mvc mobile asp.net-mvc-4

I am working with an MVC4 web application that has 3 snap points - desktop, phone and tablet.

Is there a way to check what's running in the .NET Thread Pool?

c# winforms multithreading threadpool

Normally i was creating each thread per action i wanted to do multithreaded. I was doing it like that:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.