I would like my ads to be shown while my app is trialed and disappear when app is fully licensed.
Kookiz-
Private Sub PhoneApplicationPage_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)
If App.IsTrial Then
AdControl1.Visibility = Windows.Visibility.Visible
Else
AdControl1.Visibility = Windows.Visibility.Collapsed
End If
End Sub
The problem is that
IsEnabledstill shows the Control.What you should do is add an empty container for the ad in your XAML file, like this:
Then in the
PhoneApplicationPage_Loadedevent handler, ifIsTrialequalstrue, instanciate theAdControland add it to the View: