Hi Stoyo,
After trying to use container nodes, it looks like I do need the AttachTo method. Could you please organise it to be ported over?
I have been trying to use container nodes. I have created links between the nodes within the container nodes. I want to rearrange these in a treelayout. When I try this, I get the following error message:
System.NullReferenceException was unhandled by user code Message=Object reference not set to an instance of an object. StackTrace: at MindFusion.Diagramming.Silverlight.InteractionState.Start() at MindFusion.Diagramming.Silverlight.ContainerNode.OnBoundsChanged(Rect oldRect, Rect newRect, Boolean updateChildren, Boolean updateStorage) at MindFusion.Diagramming.Silverlight.DiagramNode.xfa961b14b2535a72(DependencyObjec t x73f821c71fe1e676, DependencyPropertyChangedEventArgs xfbf34718e704c6bc) at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyPrope rty dp, Object oldValue, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at MindFusion.Diagramming.Silverlight.DiagramNode.set_Bounds(Rect value) at MindFusion.Diagramming.Silverlight.ContainerNode.MoveWith(Double dx, Double dy) at MindFusion.Diagramming.Silverlight.Layout.x73e4e74934f5902b.set_x6ae4612a8469678 e(Rect xbcea506a33cf9111) at MindFusion.Layout.x0685451118af5c7f.x550781f8db1cf5f2(x11d78e5b469ed338 xda5bf54deb817e37, xcb359d3cc19bff83 x672ff13faf031f3d) at MindFusion.Layout.xcb359d3cc19bff83.x35618da2db9d09c0(x11d78e5b469ed338 xda5bf54deb817e37) at MindFusion.Layout.x3ea78caabca59bc5.x84e6892f0d4e87ad(x11d78e5b469ed338 xcd0140078338adc3, x9f305bec3115d3d9 x672ff13faf031f3d) at MindFusion.Layout.x0685451118af5c7f.xb7874248b0c0bc2d(x5660ea42023c83d2 xee6a854ae0b80ef2, x0cbf0b2191c9f896 x8d3f74e5f925679c, x78e3ce9dc43283f0 x22bfd1664c623dc4) at MindFusion.Diagramming.Silverlight.Layout.TreeLayout.x1d21b37097156a35(Diagram x8b62359f01cfd806, IEnumerable xf8b54ce7724a27f2) at MindFusion.Diagramming.Silverlight.Layout.Layout.Arrange(Diagram diagram, DiagramItemCollection items) at MindFusion.Diagramming.Silverlight.Layout.TreeLayout.Arrange(Diagram diagram, DiagramItemCollection items) at MindFusion.Diagramming.Silverlight.Layout.Layout.Arrange(Diagram diagram) at HFRM.MainPage.LoadHTAItemsToDiagram() at HFRM.MainPage.MainPage_Loaded(Object sender, RoutedEventArgs e) at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) InnerException:
|