How to do grouping of layer in table of content toolkit

385
3
Jump to solution
08-25-2020 07:45 AM
HarshGupta
New Contributor II

@Michael Branscomb

Hi,

I am using table of content toolkit in arcgis runtime .net sdk  and able to display all mapview layers and picking up sublayer content in context menu but i am unable to  group this layer in treeview layer format.like in arcgis pro

Please help me out i am  stuck here in my development

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

Does your OperationalLayer collection contain layers of type GroupLayer?

Layer types described—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

Thanks

Mike

View solution in original post

0 Kudos
3 Replies
HarshGupta
New Contributor II

hi i am stuck here please anyone reply

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Does your OperationalLayer collection contain layers of type GroupLayer?

Layer types described—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

Thanks

Mike

0 Kudos
HarshGupta
New Contributor II

Thanx Michael Branscomb i tried group of layer 

1) At first i picked up a layer from TOC  and add it to group layer class and add that grouplayer to mapview it is displayed in TOC successfully.

2)But next time when i want to add another Layer from TOC to the existing group it will show me an error that object already owned.

3)And one more thing can i pick up multiple layer From TOC and add it to the group Of layer?

0 Kudos