Perhaps this will help:
Thanks Walter for the example. I know this is trivial, but could you provide a sample app with the node collection coming from an access database? Thanks alot for your time and effort.
Sorry, but I haven’t done any Access programming in many years.
But to give a general idea: videos about building Silverlight Business Application using WCF RIA Services
OK, I am having problems with populating the diagram view with nodes from a WCF service pulling information from either a MSAccess or SQL server database. Here is my xaml code:
AddHandler client.GetDataCompleted, AddressOf asset_GetDataCompleted
Have you checked the value of “e.result”? Is it what you expected? Does your data template use the proper bindings to get to the desired values?
What exactly is the problem that you are having?
That sounds like a traditional data-binding task.
Are you able to data-bind controls outside of the Diagram to one of the items in your result collection?
OK, then you want to do exactly the same kinds of element organization and data-binding within your Node DataTemplate, except that the Bindings should all have their Path prefixed with “Data.”
And most of the GoXam-specific attached properties can be set or data-bound on the root element of the DataTemplate.
All of the samples in the demo exhibit many examples of this.
The other optional step is diagram-specific. That is to customize the model so that it recognizes any diagram relationships in the data: links and groups. Because you aren’t using the predefined model data that GoXam supplies, this is likely to be important to you. The User Guide discusses the different kinds of models and how to do this customization.
Yes, it does automatically populate the Diagram, or the Palette in your case.
Have you specified a Diagram.NodeTemplate for the Palette? The default DataTemplate is basically a TextBlock that shows the result of data.ToString().
You haven’t said what results you are getting and how it’s different from what you want.
The videos at GoXam documentation provide exactly that: an example of how to read data from a SQL database running on a server into a GoXam for Silverlight Diagram.
The videos go through the entire process of building the whole (but simplified) org chart application.
If you want some help with defining the Node DataTemplate, you’ll need to tell us what properties are being exposed by your data and what you want your node to look like.