I'm writing an app for a Windows 10 Mobile Enterprise phone, using the UWP framework and C#.
When I plug the phone into a computer, the phone prompts for whether I want to allow a data connection, or just power.
I know there's an event to detect whether the phone is being charged or not, but I need an event that is fired when the user says Yes to allow a data connection.