Hey,
Quick question, how do I convert this into back end code? i.e. c#
ItemsSource="{Binding Source={StaticResource List1}, XPath=Entry}"
Thanks
Hey,
Quick question, how do I convert this into back end code? i.e. c#
ItemsSource="{Binding Source={StaticResource List1}, XPath=Entry}"
Thanks
Binding items = new Binding();
items.Source = FindResource("List1");
items.XPath = "Entry";
myItemsControl.SetBinding(ItemsControl.ItemsSourceProperty, items);
Where myItemsControl
is the control on which to set ItemsSource
.