Change the ad link label

Topics: Windows 8 Xaml, Windows Phone 8
Aug 27, 2014 at 3:10 PM
Hi,
I want to change the ad link label on windows phone 8 and windows 8.1 but I don't know where to start.
I saw that I can change the localized resource with this code for windows 8 but I can't find the label of the ad (which is AdLinkLabel for windows phone) :
MediaPlayer.ResourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView("Resources");
This was for windows 8.1.
For windows phone I don't know where to start. The localized sample does not contains a windows phone project.

I will be glad if a solution can be found.

Regards,
Coordinator
Aug 28, 2014 at 12:07 AM
For Windows Phone 8.0 you can do the same technique by setting the ResourceManager property. For example:
MediaPlayer.ResourceManager = new ResourceManager("MyApp.Resources", typeof(MainPage).Assembly);
The key is the same for both Windows and Windows Phone: "AdLinkLabel"
Marked as answer by patatarte on 8/28/2014 at 12:10 AM
Aug 28, 2014 at 7:10 AM
Thanks for your fast answer. It worked exepted for windows phone. It was easier to set it like :
   MediaPlayer.ResourceManager = Resource1.ResourceManager;