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 |
Which class is used to put animation objects in Siverlight application?
What is xaml in silverlight?
What are the main features and benefits of Silverlight?
Describe the term Silverlight plug-in.
How can you check the internet connection status in silverlight?
What are those browsers which supports silverlight?
When would one use silverlight instead of asp.net ajax?
what is .xap file?
Give an example of how an AppManifest.xml file looks like.
what is .xap file in context of silverlight?
what is name scope in silverlight?
Is silverlight supported on various locales?