Quick question, how do I convert this into back end code? i.e. c#
ItemsSource="{Binding Source={StaticResource List1}, XPath=Entry}"
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With