O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the Tag Expression Programmatically

To set the tag expression without using the UTF tag expressions editor, use the TagExpression property of the UnitTestSettings class, as shown in the following example:

public MainPage(){    InitializeComponent();    UnitTestSettings settings = UnitTestSystem.CreateDefaultSettings();    settings.TagExpression = "ChatClientUITests";    Content = UnitTestSystem.CreateTestPage(settings);}

Note

Unfortunately, the test harness does not allow you to programmatically change the Tag in the current version of the Windows Phone Toolkit UTF. Nonetheless, it is shown here in anticipation of a future release of the UTF.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required