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 |
what is name scope in silverlight?
How to change the default page of a Silverlight application?
What is the parent xaml tag of silverlight page? Explain its purposes.
Difference between wpf and silverlight?
How to perform event handling in silver light?
What is the Silverlight plug-in?
What is the difference between logical and visual tree?
Describe how to perform event handling in silverlight.
What is Moonlight?
what are the steps will followed when consuming wcf in silver light?
How does silverlight 2 differ from adobe flash?
Differentiate between Silverlight and Windows Presentation Foundation (WPF)?