Write the code to populate the controls in silverlight?



Write the code to populate the controls in silverlight?..

Answer / Lalsingh

To populate controls in a Silverlight application, you can use data binding or manually set properties. Here's an example of using data binding with a ListBox:

xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:collection="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"

<ListBox x:Name="myListBox">
<sys:String>Item 1</sys:String>
<sys:String>Item 2</sys:String>
<!-- Add more items here -->
</ListBox>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Microsoft Silverlight Interview Questions

Which class is used to put animation objects in Siverlight application?

1 Answers  


What is xaml in silverlight?

1 Answers  


What are the main features and benefits of Silverlight?

1 Answers  


Describe the term Silverlight plug-in.

1 Answers  


How can you check the internet connection status in silverlight?

1 Answers  


What are those browsers which supports silverlight?

1 Answers  


When would one use silverlight instead of asp.net ajax?

1 Answers  


what is .xap file?

1 Answers   Microsoft,


Give an example of how an AppManifest.xml file looks like.

1 Answers  


what is .xap file in context of silverlight?

1 Answers   Microsoft,


what is name scope in silverlight?

1 Answers   Microsoft,


Is silverlight supported on various locales?

1 Answers  


Categories