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
55
xamDataTree
posted

I added all references in my project and did everything described in Infragistics documentation but I can't create a simpke xamDataTree.

here is my Xaml code and corresponding error

<ig:XamDataTree x:Name="MyTree"
ItemsSource="{Binding Source={StaticResource odptree}}">
<ig:XamDataTree.GlobalNodeLayouts>
<ig:NodeLayout Key="CategoryLayout"
TargetTypeName="Category"
DisplayMemberPath="CategoryName">
</ig:NodeLayout>
</ig:XamDataTree.GlobalNodeLayouts>
</ig:XamDataTree>

Error 27 A value of type 'NodeLayout' cannot be added to a collection or dictionary of type 'GlobalNodeLayoutCollection'. C:\Users\Ali\Documents\Visual Studio 2010\Projects\DG\GUI\MVVMTr-1\TestW.xaml 20 17 DG.View

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Mo,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamDataTree.zip
Children