Getting error in XAML putting TreeViewAdv on UserControl

I am trying to put a CheckedTreeView item on one of my screens.  The solution builds OK, but the TreeView does not display anything.
XAML builder shows an error condition, which I have included in zip file.
I tried to follow the example of the CheckedTreeView demo, and currently I am only trying to display some simple hard-coded data.

Not sure if I am doing something wrong, or whether I am running into some incompatibility with the version of the DLL or something.

Attachment: TreeView_b14d8c4d.zip

3 Replies

PB Priyanga Balasubramaniam Syncfusion Team July 30, 2018 12:22 PM UTC

Hi Steve, 

Thank you for using Syncfusion products. 

We have prepared the simple sample using our CheckedTreeView demo logic. In this sample, we have used our TreeViewAdv as UserControl. We could not find the reported issues in designer with the below sample. 
You can download the sample from the below location. 

Sample:CS 
Please check with the above sample and can you update whether we missed anything in this sample? 

Regards, 
Priyanga B 



SM Steve McWilliams July 31, 2018 04:08 PM UTC

My code seemed to be same as yours. My view model code worked in your demo solution.
But in my application, the tree view still would not display in my user control using pure XAML.

But when I added this code to my code-behind, it works fine now. 

var src = new ReportHistoryViewSource();

 treeview.ItemsSource = src.TreeViewModels;


Not sure why setting ItemsSource= in XAML wasn't good enough in my case, but at least it seems OK now.



VR Vijayalakshmi Roopkumar Syncfusion Team August 1, 2018 06:08 AM UTC

Hi Steve.

Thank you for the update.

If you can provide more information for the reported case in your application, we can check it and provide the solution accordingly.

Regards,
Vijayalakshmi V.R.

Loader.
Up arrow icon