I just recent updated to the lastest service 2011.2.2242
After the updated, I keep getting this error "Width and Height must be non-negative" when I close the XamDialogWindow dialogbox
System.ArgumentException was unhandled by user code
Message=Width and Height must be non-negative. Source=WindowsBase StackTrace: at System.Windows.Size..ctor(Double width, Double height) at Infragistics.Controls.Menus.Primitives.NodesPanel.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.UIElement.UpdateLayout() at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SourceWindowHelper.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.Show() at LI.App.AppDispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e) at System.Windows.Threading.Dispatcher.CatchException(Exception e) at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e) at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) InnerException:
As soon as it hit close(), i got this error
any help would be nice Thanks
Hello,
I have been looking into your issue and I have not been able to reproduce it. I have created a sample application(DialogWindow2011.2.2242.zip) in order to test it. Would you please modify it or attach your own application? Also please tell me the version of the Visual Studio that you are using and the version of the Operation System.
Looking forward to hearing from you.
For some reason i lost access to the account and I tried 3 time to reset my password but for some reason it did not send me a email
i attached Error.xaml with how we used the dialogwindow.
but now i am seeing more error now. Did this release make any changes to the measureOverride
Infragistics.Controls.Menus.Primitives.NodesPanel.MeasureOverride(Size availableSize)
Thanks
Thank you for your feedback. I have been looking into the provided XAML code. I have tried to run it but your issue does not appear because I haven’t the code in the events’ body. Would you please attach the runnable sample application with the same XAML in order to reproduce your issue and provide you with more accurate assistance?
It seem to me now that the ig:XamdataTree REQUIRED a MaxWidth and MaxHeight value without it i will get error
I am really sorry that i can not give you the binding code-behind
I can make this work if I hard code the MaxWidth and MaxHeight on ig:XamDataTree
Which i can not i i use the XamdataTree to bind with 2 source and now 1 is taking up too much space then the other one because i have to set a max width and maxheight
Also this was working perfectly fine before the service release
there where no maxheight or maxWidth on the ig:XamDataTree
<ig:XamDialogWindow x:Class="LI.DynamicReport.Views.LenderSelectView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ig="http://schemas.infragistics.com/xaml" IsModal="True" MaxHeight="500" MaxWidth="400" MinHeight="400" CloseButtonVisibility="Hidden" MinWidth="300" Header="{Binding Path=Label,UpdateSourceTrigger=PropertyChanged}" StartupPosition="Manual" Loaded="XamDialogWindow_Loaded">
<ig:XamDialogWindow.Resources>
<Style TargetType="{x:Type ListBoxItem}" x:Key="ListBoxItemStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate>
<StackPanel>
<TextBlock Text="{Binding Description}" /> <ig:XamDataTree ItemsSource="{Binding ParameterItems}" >
<ig:XamDataTree.CheckBoxSettings> <ig:CheckBoxSettings CheckBoxVisibility="Visible" CheckBoxStyle="{StaticResource SimpleCheckBox}" />
</ig:XamDataTree.CheckBoxSettings>
<ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="CategoryNodeLayout" TargetTypeName="ParameterItemViewModel" DisplayMemberPath="Description" CheckBoxMemberPath="IsSelected" IsExpandedMemberPath="IsAllOptionOn" > </ig:NodeLayout> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree>
</StackPanel> </ControlTemplate> </Setter.Value> </Setter> </Style>
</ig:XamDialogWindow.Resources> <Grid> <Grid MaxHeight="500" MaxWidth="400" Visibility="{Binding IsLoading, Converter={StaticResource InvertedBooleanToVisibilityConverter}}" x:Name="gridData">
<Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <StackPanel Grid.Row="1" Margin="5">
<ListBox Name="SourceComboCtl" BorderThickness="0" Margin="0" ItemContainerStyle="{StaticResource ListBoxItemStyle}" ItemsSource="{Binding Path=ParameterItems, UpdateSourceTrigger=PropertyChanged}" Height="500" Width="400" /> </StackPanel> <!-- Dialog Footer: Buttons --> <Button x:Name="CloseButton" Click="CloseButton_Click" Content="OK" HorizontalAlignment="Center" Style="{DynamicResource DarkButtonStyle}" Margin="0,5,0,5" Grid.Row="2" /> </Grid> <Label Content="Saving" Grid.RowSpan="3" FontWeight="Bold" FontSize="16" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="White" Visibility="{Binding IsLoading, Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="DimGray" />
<Label Content="Loading" Grid.RowSpan="3" FontWeight="Bold" FontSize="16" x:Name="lbLoading" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="White" Visibility="Visible" Foreground="DimGray" />
</Grid></ig:XamDialogWindow >
I actually have this issue as well and it looks like it is linked to DataTree.
We had no issue with this before when we were using version 12.1.20121.1010.
But when we get this issue when we upgraded to 12.1.20121.2107
Hope that this will help you locate the issue.
Hello Steven,
I have created a case with number CAS-102861-Y7D0M9 where I would like to ask you several question. Please look through it.
Thank you in advance.
Thanks Yanko,
I can confirm that this issue has been addressed in Version 12.1.20121.2169
Hi,
The Service Release is already out. You can download it from our website -> Account -> Select the product -> Select ‘Service Release’ tab.
Thank you for your patience.
Hi Yanko,
Any news on when this is fixed?
Regarding the issue with your previous account, would you please tell me what exactly prevents you to enter in the account ?
If you have forgot the password, you can look into our FAQs in the ‘New Account Registration and Account Management’ section :
http://ko.infragistics.com/help/FAQs/
Hi Alan,
This issue is fixed and it will be available in our upcoming public service release in the end of the month :
http://ko.infragistics.com/help/service-releases/
If you need any other questions on this matter, feel free to ask.