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
190
ArgumentException when browser window is minimized
posted

Hi,

I've a problem with the XamWebDialogWindow (version 10.1, latest release).I've a popup that shows up every 10 seconds (wusing a storyboard timer). The problem happens when my main application window is minimized.

I get this exception :

"Message : Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.ArgumentException: La valeur n'est pas comprise dans la plage attendue. (which means "Value does not fall within expected range")
   à MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   à MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   à MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   à System.Windows.UIElement.TransformToVisual(UIElement visual)
   à Infragistics.Silverlight.Controls.XamWebDialogWindow.GetContainerPanelCoords(FrameworkElement container)
   à Infragistics.Silverlight.Controls.XamWebDialogWindow.CenterDialogWindow()
   à Infragistics.Silverlight.Controls.XamWebDialogWindow.XamWebDialogWindow_LayoutUpdated(Object sender, EventArgs e)
   à System.Windows.FrameworkElement.OnLayoutUpdated(Object sender, EventArgs e)
   à MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)"    

If this is a bug , is there a way i can avoid it through a little workaround or something ?

Thanx.

EDIT :  I also set the popup StartupPosition Property to "Center" and restrictInContainer to "true"

Parents Reply Children
No Data