Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1300
Exception from XamNetworkNode when used in a grid with Splitter
posted

Hi,

I am getting an unhandled exception when I try to resize XamNetworkNode with a GridSplitter. Attached the sample project and snapshots.

System.Reflection.TargetInvocationException occurred   _HResult=-2146232828   _message=Exception has been thrown by the target of an invocation.   HResult=-2146232828   IsTransient=false   Message=Exception has been thrown by the target of an invocation.   Source=mscorlib   StackTrace:        at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)        at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   InnerException: System.ArgumentOutOfRangeException        _HResult=-2146233086        _message=The parameter value must be greater than zero.        HResult=-2146233086        IsTransient=false        Message=The parameter value must be greater than zero. Parameter name: pixelHeight        Source=PresentationCore        ParamName=pixelHeight        StackTrace:             at System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)             at Infragistics.Controls.Maps.NetworkNodeNodesPanel.Render()             at Infragistics.Controls.Maps.XamNetworkNode.ArrangeElements(Boolean immediate, Boolean refreshThumbnail)

 

I have a Grid with 3 RowDefinitions, with XamNetworkNode in 1st row, Splitter in 2nd Row & Some other control in 3rd Row. When I drag the splitter upwards trying to increase the height of row 3, I am getting an unhandled exception. It is coming when the XamNetworkNode's  visible height is almost approaching zero.

 

Can any one please help on fixing this exception.

 

Thanks

Prasad

 

exception snapshot

Project And ExceptionSnapshots.zip