Click here to Skip to main content
15,885,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to bind items in Xaml page in silverlight application like as below same clasic ASP. We are using infragistics V11 XamComboEditor control. Please can help me on same.

XML
<asp:DropDownList ID="DropDownListID" AppendDataBoundItems="true" runat="server">
     <asp:ListItem Text="static item 1" Value="1" />
     <asp:ListItem Text="static item 2" Value="2" />
     <asp:ListItem Text="static item 3" Value="3" />


Regards
Srinivas
Posted

1 solution

try as this.

XML
<igEditors:XamComboEditor.ItemsProvider>
    <igEditors:ComboBoxItemsProvider>
        <igEditors:ComboBoxItemsProvider.Items>
            <igEditors:ComboBoxDataItem DisplayText="Item 1" Value="Item 1" />
            <igEditors:ComboBoxDataItem DisplayText="Item 2" Value="Item 2" />
            <igEditors:ComboBoxDataItem DisplayText="Item 3" Value="Item 3"/>
        </igEditors:ComboBoxItemsProvider.Items>
    </igEditors:ComboBoxItemsProvider>
</igEditors:XamComboEditor.ItemsProvider>


for more information
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/xamComboEditor_Manually_Add_Items_to_xamComboEditor.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900