This is a migrated thread and some comments may be shown as answers.

[Solved] Templating question

1 Answer 81 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jamie
Top achievements
Rank 1
Jamie asked on 22 Oct 2008, 09:44 PM
I'm evaluating the RadTreeView for Silverlight 2.0 control - what I would like to be able to do is override the placement of all elements in the treeview, but still maintain the hierarchical relationship (for collapse/expand/tree-walking/etc).  So far I can place the top-level nodes, but the children layout relative to their parents rather than honoring the canvas positions I give them.

I have a graphing control the does all of the layout, but I'd like to port my application to Silverlight to expand my customer-base.  Any guidance on whether this is possible would be greatly appreciated.

Regards,

/jamief

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 23 Oct 2008, 08:47 AM
Hello Jamie,

Basically you can modify the control template of the TreeView and the ItemsPanel that is used for each item. This will give you full control over the layout. Are you trying to layout the items entirely in XAML, or are you have a custom logic attached to the TreeView that do this programmatically? We will need some more details in order to help you with the implementation. A sample project and some screenshots of what you are trying to achieve will be of great help.

Thanks!

PS: Have you checked our Lookless layout example? Find it here:
http://demos.telerik.com/silverlight/#Examples/TreeView/Lookless


Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Jamie
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or