About GenericAdProviderForXaml and Smaato providers

Jan 25, 2013 at 11:48 PM

Project is great, but just a couple of things regardless these two providers.

GenericAdProviderForXaml link

After a click in a custom GenericAdProviderForXaml provider, the ad link is not working anymore. After some research I found the following code in GenericAdProviderForXaml.cs:

ModifyHyperlinksInContent()
{
...
var hyperlinkButton = dependencyObject as HyperlinkButton;
hyperlinkButton.Tag = hyperlinkButton.NavigateUri;
hyperlinkButton.NavigateUri = null;
...
}

that IMHO should be as follows, to avoid null in the link after the second click:
var hyperlinkButton = dependencyObject as HyperlinkButton;
if (hyperlinkButton.Tag == null)
{
    hyperlinkButton.Tag = hyperlinkButton.NavigateUri;
    hyperlinkButton.NavigateUri = null;
}

Smaato provider

The Smaato library SOMAWP7.dll used is the "with location services" version. That means that application needs ID_CAP_LOCATION capability.

In order to use this provider in an application without this capability, the "no location services" version of SOMAWP7.dll needs to be used instead.

Hope this helps.

Keep the great work!

Alvaro