In code you can do this (it is c#, converting to vb is really simple):
If you want to bind in the XAML, you should load the dataset and bind it in XAML using :Code:DataSet Ds = new DataSet(); Ds.ReadXml("E:\\doc.xml"); ListBox1.DataSource = Ds; ListBox1.DataTextField = "DocumentId"; ListBox1.DataValueField = "DocumentTitle" ListBox1.DataBind();
Remeber to make DS a property of the class (and use descent namesCode:<Listbox ItemSource = "{Binding DS}"/>)




)
Reply With Quote