Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows 8 ads showing up on top of settings flyout
    primarykey
    data
    text
    <p>First, a screenshot:</p> <p><img src="https://i.stack.imgur.com/eW02z.png" alt="ad from main view showing up on settings flyout"></p> <p>The title and image explain it pretty well. I have an ad set on the right side of my app's main group view (very very similar to the default grid template in this example), and when I pull up my About screen, the ad bleeds through.</p> <p>The About screen is a user control set on a SettingsFlyout that I borrowed from some code samples handed out at a dev-camp (below).</p> <pre><code>class SettingsFlyout { private const int _width = 346; private Popup _popup; public void ShowFlyout(UserControl control) { _popup = new Popup(); _popup.Closed += OnPopupClosed; Window.Current.Activated += OnWindowActivated; _popup.IsLightDismissEnabled = true; _popup.Width = _width; _popup.Height = Window.Current.Bounds.Height; control.Width = _width; control.Height = Window.Current.Bounds.Height; _popup.Child = control; _popup.SetValue(Canvas.LeftProperty, Window.Current.Bounds.Width - _width); _popup.SetValue(Canvas.TopProperty, 0); _popup.IsOpen = true; } private void OnWindowActivated(object sender, Windows.UI.Core.WindowActivatedEventArgs e) { if (e.WindowActivationState == Windows.UI.Core.CoreWindowActivationState.Deactivated) { _popup.IsOpen = false; } } void OnPopupClosed(object sender, object e) { Window.Current.Activated -= OnWindowActivated; } } </code></pre> <p>And, because I know it will be asked for, here is the line of XAML defining the ad on my page:</p> <pre><code>&lt;ads:AdControl Visibility="{Binding IsTrial, Source={StaticResource License}, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="0" Grid.RowSpan="2" x:Name="LandscapeAdControl" ApplicationId="test_client" AdUnitId="Image_160x600" Width="160" Height="600" VerticalAlignment="Center" HorizontalAlignment="Right"/&gt; </code></pre> <p>So, why is this happening, and how do I prevent it? </p> <p><strong>Suspicions</strong></p> <ol> <li><p>I am still on Consumer Preview b/c I have a show-and-tell Monday and didn't have time to work on migrating the OS on this box without risking being non-functional when I am showing this. As such, upgrading might fix it if it's a bug.</p> <p>1.a. <strong>Update</strong> I have upgraded to Release Preview and have the same issue.</p></li> <li>Is there some fancy ad-hiding-but-still-getting-impressions prevention technique at play here? Perhaps it thinks I am trying to cover the ad with a ui element and still get credit for it's impression without the user seeing it. If so, how do I manage this entirely legit use case?</li> </ol> <p><strong>Spoiler Alert</strong>: ZIndex isn't set anywhere.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload