How to show a loading graphic/animation when wpf data binding is taking place
问题 I have a WPF user control that contains a DataGrid . I'm binding an ObservableCollection of view models to it. Each view model has another collection of view models that I'm using to bind another DataGrid to. So the effect is a DataGrid with a nested DataGrid contained in the row details template. Normally the binding is quite quick, but sometimes when there's a lot of data it can hang the UI while the binding/drawing is taking place. Is there a way where I can either show a loading animation