This topic has not yet been rated - Rate this topic

UseStaticAnchor

Microsoft Advertising Services

This property is used to provide a better visual experience when the AdControl is hosted in a WebView XAML container.

Use this property if you are seeing a flicker, a delay in rendering, or incorrect z-order for the AdControl.

The UseStaticAnchor property supersedes the previously recommended workarounds of using the Suspend/Resume methods to address z-index issues and the IsPerformanceScrollingEnabled to address flicker during scrolling issues.

This property can only be set when the AdControl is initialized.

Namespace: Microsoft.Advertising.WinRT.UI (in Microsoft.Advertising.WinRT.UI.winmd)

XAML only

 

C#

public bool UseStaticAnchor { get; set; }

 

Language Property Parameter Return Type

C#

UseStaticAnchor

bool

bool

Use this property if you are seeing a flicker, a delay in rendering, or incorrect z-order for the AdControl.

This property can only be set when the AdControl is initialized. You can set this property to true in XAML UI script or in the code-behind before adding the AdControl to the visual tree.

 

UseStaticAnchor Value

Result

true

The Suspend/Resume methods and the IsPerformanceScrollingEnabled properties do not work and are disabled for this AdControl.

false

The Suspend/Resume methods and the IsPerformanceScrollingEnabled property work as documented.

Attempting to set the UseStaticAnchor property after the AdControl is initialized will throw a client configuration error, indicating that the AdControl has not been configured properly.

Please see the Known Issues topic for a discussion of this workaround and related APIs.


Report a bug in the product. Send email to psupport@microsoft.com.
Send feedback about this documentation to adsfdbk@microsoft.com.
Revised: 2013-01-31
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.