I am attempting to hide/show nodes via binding. The following infragistics article isn't very MVVM friendly: "http://help.infragistics.com/NetAdvantage/DV/2011.2/CLR4.0/?page=Removing%20Nodes%20From%20Network.html".
After creating a sample that I thought should work, I receive an "ArgumentNullException" when raising a property changed event on the property bound to the visibility of a node. Continuing through the error or trying to handle it within a try catch block results in a "StackOverflowException" and crashes the app.
Attached is a sample application. After running the app if you click the "Hide Red Nodes" button, it reproduces the error every time. Below are the last few lines from the stack trace. Is there something I am doing incorrectly or another recommended approach from infragistics?
Kind Regards,
Daniel
PS Let me know if I would be better served by opening a support ticket.
at System.Windows.Controls.ToolTipService.SetToolTip(DependencyObject element, Object value) at Infragistics.Controls.Maps.NetworkNodeNode.InitializeToolTip() at Infragistics.Controls.Maps.NetworkNodeNode.InitializeNode() at Infragistics.Controls.Maps.NetworkNodeNode.set_Control(NetworkNodeNodeControl value) at Infragistics.Controls.Maps.NetworkNodeNodesPanel.RenderNode(NetworkNodeNode node, Rect elementRect, RenderContext context) at Infragistics.Controls.Maps.NetworkNodeNodesPanel.RenderNodes(RenderContext context) at Infragistics.Controls.Maps.NetworkNodeNodesPanel.Render() at Infragistics.Controls.Maps.XamNetworkNode.ArrangeElements(Boolean immediate, Boolean refreshThumbnail)
Hello Daniel,
I have logged this with development under ID: 103706 and I have also created a support ticket on your behalf: CAS-85773-T7GQ2D and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
Thanks for the update.
Hello,
I was updated by our dev. team and they said that this behavior is by design and that it is not best practice to set the Visibility Property in Style, so I suggest you remove the data that you don’t want to show and then add it again or iterate the NetworkNode that corresponds to the required data (using XamNetworkNode.Search methods or iteration on the XamNetworkNode.Nodes property). After that the you can set NetworkNode.Visibility Property to the wanted value.
Hope this helps you.