AdControl constructor
Instantiates a new AdControl.
Syntax
public AdControl()
public AdControl(string ApplicationId, string AdUnitId, bool isAutoRefreshEnabled)
Remarks
You typically add an AdControl on XAML page using markup rather than calling this constructor directly in your code. For an example, see AdControl in Windows Phone Silverlight.
You must set the ApplicationId and AdUnitId properties before an ad can be displayed, and you also typically set the Height and Width properties inherited from the FrameworkElement class.
Requirements
| Minimum supported phone | Windows Phone 8 Silverlight |
|---|---|
| Namespace | Microsoft.Advertising.Mobile.UI |
| Assembly | Microsoft.Advertising.Mobile.UI.dll |
Show: