This project is read-only.
3

Resolved

Collapse Control if no network connectivity

description

Something that can be done is Check if there's Network connectivity and set the Visibility of the adcontrol to Collapsed in case of no visibility.
 
If you give the UnifiedAdControl a name like "Ad". You can use this code inside the OnNavigatedTo methods of the pages.
 
if (!NetworkInterface.GetIsNetworkAvailable() || NetworkInterface.NetworkInterfaceType == NetworkInterfaceType.None)
{
Ad.Visibility = Visibility.Collapsed;
}
else
{
Ad.Visibility = Visibility.Visible;
}

comments

wrote Jun 4, 2012 at 10:05 PM

Fixed on changeset 13219

wrote Jun 4, 2012 at 10:05 PM

wrote Jun 18, 2012 at 9:06 AM

wrote Feb 14, 2013 at 7:47 PM

wrote May 16, 2013 at 10:08 AM

wrote May 16, 2013 at 10:08 AM

wrote Jun 14, 2013 at 8:07 AM