Skip to main content
Home Forums Silverlight Programming Programming with JavaScript How to create TreeMap in Silverlight2?
6 replies. Latest Post by pragati_sd on July 16, 2009.
(0)
tanusree
Member
29 points
77 Posts
06-03-2009 8:02 AM |
Can anyone help me in creating TreeMap in Silverlight2?
Thanks in advance,
Tanusree
Isaak
530 points
94 Posts
06-03-2009 6:09 PM |
If I undestood your problem, you can create a class that will hold each Tree Level and its associated children. For example, the following class can be used as your data model, while you can directly bind a collection in the Silverlight Control Toolkit TreeView, using the HierarchicalDataTemplate:
{
Name = name;
Country = country;
Children = children;
}
clint1222
Participant
1542 points
216 Posts
06-04-2009 5:32 PM |
Descry posted some code on Codeplex to create a treemap. http://www.codeplex.com/descry
Here's a link to a sample of their treemap control http://descry.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26550
I was able to use it to create a pretty good treemap. If you run into any problems let me know, I'll help you out.
Note: as pointed out on the site, it's raw code that may require some tweaking to use.
pragati_sd
52 points
24 Posts
06-05-2009 4:53 AM |
Plz check this link
http://www.codeproject.com/KB/recipes/treemaps.aspx
Download the the project & check, you need to modify somethings. I've created the Treemap with the base logic from this itself.
cricosta
2 points
1 Posts
07-15-2009 6:53 AM |
I realize this thread has closed a while ago, but just for future reference the latest version of SL Toolkit now includes a TreeMap too:
http://blogs.msdn.com/delay/archive/2009/07/10/silverlight-charting-gets-an-update-and-a-treemap-silverlight-toolkit-july-2009-release-now-available.aspx
GarB
07-15-2009 4:03 PM |
Also check out the GPD-E team blog, they contributed the control to the toolkit. http://blogs.msdn.com/gpde/
07-16-2009 2:04 AM |
Hi!!
Has anyone used this new control - TreeMap in application with data of type Hierarchy more than 2 / 3 .. Like - Root - Subitems - SubItems - so on.....
Please, share the xaml as well as xaml.cs
Email ID - pragati.dukale@revalanalytics.com
Thanks in advance.
Pragati