I have a WPF Application with C#.
In this application there is a button which opens a new window/view. When this view opens it displays some data. At the same time new data is being retrieved and the view gets updated with this new data after a few seconds. I do not want the old data to be shown, so the view should just be loading until the new data is retrieved.
So I would like to have a loading modal (something like a pop-up) that is displayed in the middle of the screen until the data has been retrieved. Also the parent view should be frozen/disabled while loading the data.
My idea was to create a modal and open it (via .ShowDialog()) while the data is being retrieved. But when doing my research I found no possibility to automatically open the modal while the data is being retrieved. I only found how to open the modal via a button.
Does someone have an idea?
I basically just need a loading bar, but the loading bar should just be simple modal with just a small text (like "Wait till data is retrieved").