✅ How to debug data binding for a control on a MAUI content page
I'm trying to get a DevExpress
DataGrid
control working as the only content on a MAUI content page. I'm setting the ItemSource
property in the page Loaded
event and so far all I can manage is to see that my breakpoint in that event handler is getting hit when I debug the app on my Android device. Test data is being loaded correctly here, into an ObservableCollection
and the CollectionChanged
and PropertyChanged
events are being raised by my view model, but when the loaded event handler completes, the DataGrid
only shows column headers and zero rows.
I was previously using a CollectionView
control and that was populating properly. I thought it should be a relatively small and simple step to switch to another, similar control, based on my dim memoroes of working with data binding in WPF. It appears it's not at all so simple.
I'm hoping to find other events I can add handlers for and use to examine properties on the control, and maybe set properties to observe changes in the running control. I would also like to try any other means I can find of debugging a control using standard MAUI/XAML data binding setups, and I would greatly appreciate any advice and suggestions on this.1 Reply
Stupid me, I'm just tired.