Hi,
I'm using WindowsFormsHost for a treeview function. Below is the XAML code:
<WindowsFormsHost VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<e:TreeControl x:Name="TreeView" SelectionChanged="TreeView_SelectionChanged" >
</e:TreeControl>
</WindowsFormsHost>
The function works well, very fast and shows all the Cables with Notes from a particular Folder. Now I have to show the Cable with Notes where the Notes are not associated with any pins.
//TreeView.ShowObjectsFilterEx.Add(new Aucotec.EngineeringBase.Client.EasyControls.TreeObjectFilter()
//{
// Kind = ObjectKind.Note,
// Type = ObjectType.UnspecifiedNotes
//});
I tried using the code above but it does not work for my case as it only
filters kind and type. Currently, I am passing items using the for each loop to search Notes that are not associated with any pins and then passing it to the Treeview as below:
foreach (var item in Common.lists)
TreeView.AddObject(item.Id, true);
But this takes a very long time to show the treeview as the Cable folder has 3000+ objects.
Is there another way to achieve this in this treeview format?
Thank you.