I am using the System.Windows.Forms.WebBrowser to display XML. If i load the XML into the Control by default the elements are completely expanded. The user can collapse them manually to the depth/level that he wants.
Is it possible to collapse the elements to a certain depth/level with C# code. Let's say the XML elements are expanded to a depth of 2 or 3 and all the below elements are collapsed?
The thread that I tried is the below one, but it did not solve my problem completely.
collapse all elements for loaded xml in webbrowser control using c#