Data Binding on Advertisements

Topics: Windows Phone 8
Jul 16, 2015 at 11:07 AM
Hi All,

I'm trying to add data binding to the Advertisement URI and TYPE as follows,

<ads:AdSchedulerPlugin.Advertisements>
                    <ads:PrerollAdvertisement>
                        <ads:PrerollAdvertisement.Source>
                            <ads:RemoteAdSource Uri="{Binding PreRollAd}" Type="{Binding AdType}"/>
                        </ads:PrerollAdvertisement.Source>
                    </ads:PrerollAdvertisement>
                </ads:AdSchedulerPlugin.Advertisements>
I'm trying to implement MVVM.
But throws System Exception on XAML.
Am I doing any wrong, Please guide me.

Thanks,
Karthikeyan Manickam.