IsAutoCollapseEnabled property

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.

Important  

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

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 phoneWindows Phone 8 Silverlight
Namespace Microsoft.Advertising.Mobile.UI
AssemblyMicrosoft.Advertising.Mobile.UI.dll

 

 

 

Show:
© 2017 Microsoft