Hi,
My requirement would be to be able to change dynamically the NodeBinders and to use a dynamic IList as the data source.
So for example the user could enter any SQL statement that would return an IEnumerable that contains the records (this would mean field names can not be used in XAML). Then the user could create any number of NodeBinders and select the fields to be used for ValuePath and TextPath (this would mean that multiple NodeBinders must be generated in codebehind).
How could I handle this with xamTreeMap? What would be the easiest way to transform an IEnumerable to something that the TreeMap can process based on the selected fields?
Many thanks and best regards,
Tamas
Yes that works if you have one level in the hierarchy. If you have more, then you must construct the nested objects structure during runtime (in my case).
Anyway I have just managed to write the code that does it, so the question is answered :)
Thanks and best regards,
The way to provide data to the treemap is to set the ItemsSource property of the treemap which is IEnumerable. Then the NodeBinders determine which properties of the ItemsSource elements determine the values.