Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8781323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:16:19+00:00 2026-06-13T20:16:19+00:00

I would like my ads to be shown while my app is trialed and

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:16:20+00:00Added an answer on June 13, 2026 at 8:16 pm

    The problem is that IsEnabled still shows the Control.

    What you should do is add an empty container for the ad in your XAML file, like this:

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>            
        <StackPanel x:Name="spAd" Grid.Row="0">
            <!--Ad will be placed here via the code-->
        </StackPanel>   
    </Grid>
    

    Then in the PhoneApplicationPage_Loaded event handler, if IsTrial equals true, instanciate the AdControl and add it to the View:

    AdControl _adControl = new AdControl();
    
    // Use your real Application ID and Ad Unit ID here
    _adControl.ApplicationId = "test_client";
    _adControl.AdUnitId = "Image480_80"; 
    
    _adControl.Width = 480;
    _adControl.Height = 80;
    
    spAd.Children.Add(_adControl);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to diplay AdSense Ads in A WebView in Android. I know
I created a website with ads and I would like to have a search
I would like to stop the loading of ads after the user clicking on
While browsing the net I noticed some ad ask me if I would like
I would like to develop an HTML5 app that I could then package and
I've got an AIR app that is loading mx:HTML s. I would like to
I have ads served via adspeed.com I would like our rich text (testimonial) ads
We have an AdWhirl-sponsored version of an app (Moonrise) and would like to offer
I have a joomla site, and i would like to integrate an ads system
We use Google Ad Manager to serve ads. I would like to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.