Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
745
Nested / custom node layout
posted

Hi,

Basically, I have an object such as :

public class MyClass
{
        public MyClass2 PropertyA {...}
        public MyClass PropertyB {...}
        public ObservableCollection<MyClass3> PropertyC {...}
}

I'm trying to use the XamDataTree to render the properties of my objects, creating one tree view node for each property. Properties which implements IEnumerable should should get child nodes which follows the same principle.

Is it event possible to use the xamDataTree for this purpose? Note that "MyClass" has a property that is of the same type as itself.

Using a nodelayout, is there some way to specify the names of the properties that should be rendered as a node? Or is there some way I can inherit from the xamDataTree to control the node rendering myself?

-Thanks!

 

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can suggest you retemplate the XamDataTreeNodeControl. You can find its default Style here: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\Silverlight\Default Styles\XamDataTree\generic.xaml file. The XamDataTree is not designed to work as you want, so your options are either to retempalte it or modify your data, so it could be used by the tree without retempalting.

     

    Hope this helps you.

Reply Children
No Data