Verify All Text in a Silverlight ComboBox

Here is the sample code to accomplish that.

ComboBox cb = Pages.SilverlightToolkitSamples.SilverlightApp.Item0Combobox; 
 
string full = cb.TextBlockContent.ToString(); 
full = full.Trim(); 
 
Log.WriteLine(full); 
Assert.AreEqual(full, "All Add Delete Edit Navigation None"); 
Dim cb As ComboBox = Pages.SilverlightToolkitSamples.SilverlightApp.Item0Combobox 
 
Dim full As String = cb.TextBlockContent.ToString() 
full = full.Trim() 
 
Log.WriteLine(full) 
Assert.AreEqual(full, "All Add Delete Edit Navigation None") 
In this article
Not finding the help you need? Improve this article