AdControl.IsAutoCollapseEnabled property
Gets or sets the value that indicates whether the AdControl will automatically hide itself if no ad is available or an error occurs.
Syntax
public bool IsAutoCollapseEnabled { get; set; }
Property value
Type: System.Boolean.
Returns true if the AdControl will automatically hide itself if no ad is available or an error occurs; otherwise, false.
Remarks
Setting this value to true will collapse the AdControl so it is not visible if no ad is available or an error occurs. The default value for this property is false.
Some state changes and errors, including a no ad error, might:
-
Collapse the AdControl, so the inherited Visibility property might be set to Collapsed.
-
Make the AdControl not visible, so the inherited Opacity property is set to 0.
Setting this property 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 nherited Visibility property is in a Collapse the AdControl, so the inherited Visibility property might be set to Collapsed state. Also check to see if the control's Opacity property (inherited) is set to 0.
Requirements
| Minimum supported phone | Windows Phone 8 Silverlight |
|---|---|
| Namespace | Microsoft.Advertising.Mobile.UI |
| Assembly | Microsoft.Advertising.Mobile.UI.dll |