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 |
Can we add the reference of a class library project in silverlight application project?
Which tool should use for Silverlight – Expression Studio or Visual Studio?
What is the relationship between silverlight and windows media player?
What are the ways to display text with Silverlight?
What is Storyboard class in Silverlight?
What are the different classes used in visual tree?
Which class is used to put animation objects in Siverlight application?
Describe the different layout controls available with the use of Silverlight
Explain how to set silverlight contents width as 100%.
What are the modes that are provided in silverlight?
How do you grant silverlight permission to talk to a server that is not on your local host.
What is the difference between silverlight and flash regarding animations?