Export (0) Print
Expand All

IsAutoCollapseEnabled Property

Updated: April 22, 2014

Published: April 23, 2014

Gets or sets the value that indicates whether the AdControl will automatically hide itself if no ad is available or an error occurs.

Namespace: Microsoft.Advertising.Mobile.UI

Assembly: Microsoft.Advertising.Mobile.UI (in Microsoft.Advertising.Mobile.UI)

public bool IsAutoCollapseEnabled { get; set; }

Property Value

Property

Type

Default Value

IsAutoCollapseEnabled

Boolean

false

Setting this value to true will collapse the AdControl so it is not visible if no ad is available or an error occurs.

This value is inherited from UIElement.Visibility.

The default value for this property is false.

System_CLiX_importantImportant

Some state changes and errors, including a no ad error, might:

  • Collapse the AdControl, so the inherited property Visibility might be set to Collapsed.

  • Make the AdControl not visible, so the inherited property Opacity is set to 0.

Setting the property IsAutoCollapseEnabled to TRUE might have no effect visually since the AdControl will be made transparent and may appear collapsed.

If you are having issues with the state of the AdControl, check to see if the control's Visibility property (inherited) is in a Collapsed state (see http://msdn.microsoft.com/en-us/library/system.windows.uielement.visibility.aspx). Also check to see if the control's Opacity property (inherited) is set to 0 (see http://msdn.microsoft.com/en-us/library/system.windows.uielement.opacity.aspx).

Report the issue and your scenario to product support.

Platforms

Windows Phone 7.x, Windows Phone 8.x

Support and Feedback

Get product support or report a bug in the product by visiting the Windows Phone Dev Center support page (scroll down to the section "Microsoft Advertising support").

Send feedback about this documentation to adsfdbk@microsoft.com. There is no product support through this alias. Documentation feedback only.

Community Additions

ADD
Show:
© 2014 Microsoft