If there is no current DeviceLocationSource the property will return false.
bool enabled = MapDeviceLocationService.Instance.IsDeviceLocationEnabled; await QueuedTask.Run(() => { MapDeviceLocationService.Instance.SetDeviceLocationEnabled(!enabled); });
if (MapDeviceLocationService.Instance.IsDeviceLocationEnabled) { //The Device Location Source is Enabled }
Target Platforms: Windows 11, Windows 10