Hello,
I am using xamDateTimeEditor in a MVVM application. So, the xamDateTimeEditor is standalone and TwoWay binded to a datetime property in my viewModel. When the xamDateTimeEditor gets focused, it throws an StackOverflowException. Here is my code :
<
igEditors:XamDateTimeEditor x:Name="myDateTimeEditor" Value="{Binding myDate}"/>
When i remove this line it works. Am I doing something wrong? Thank you for your help.
i was not able to reproduce this issue in a new project, so i give you a piece of the call stack, i hope it will be usefull :
> Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.XamMaskedEditor.GetNonstandardForeignDateMaskAndPostfixSymbols(System.IFormatProvider formatProv = {System.Globalization.CultureInfo}, ref System.Collections.Hashtable foreignDateSymbols = null) + 0x33d octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.MaskParser.Analyze(string mask = "dd/mm/yyyy") + 0x1db octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.MaskParser.Parse(string mask = "{date}", out Infragistics.Windows.Editors.SectionsCollection sections = null, System.IFormatProvider formatProvider = {System.Globalization.CultureInfo}) + 0x4c octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.XamMaskedEditor.IsMaskValidForDataType(System.Type dataType = {Name = Impossible d'évaluer l'expression, car le thread actuel se trouve dans un état de dépassement de capacité de la pile. FullName = Impossible d'évaluer l'expression, car le thread actuel se trouve dans un état de dépassement de capacité de la pile.}, string mask = "{date}", System.IFormatProvider formatProvider = {System.Globalization.CultureInfo}) + 0x83 octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.EditInfo.CanSpin(bool up = true) + 0x11b octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.EditInfo.CurrentState.get() + 0x51c octets Infragistics3.Wpf.Editors.v9.2.dll!Infragistics.Windows.Editors.XamMaskedEditor.Infragistics.Windows.Commands.ICommandHost.CanExecute(Infragistics.Windows.Commands.ExecuteCommandInfo commandInfo = {Infragistics.Windows.Commands.ExecuteCommandInfo}) + 0x80 octets Infragistics3.Wpf.v9.2.dll!Infragistics.Windows.Commands.Commands<Infragistics.Windows.Editors.XamMaskedEditor>.IsCommandAllowed(Infragistics.Windows.Commands.ICommandHost commandHost = {Infragistics.Windows.Editors.XamDateTimeEditor}, System.Windows.Input.RoutedCommand command = {System.Windows.Input.RoutedUICommand}, object commandParameter = null, object originalSource = {Infragistics.Windows.Editors.SectionsList}, out bool continueRouting = false, out bool forceHandled = false) + 0x115 octets Infragistics3.Wpf.v9.2.dll!Infragistics.Windows.Commands.Commands<Infragistics.Windows.Editors.XamMaskedEditor>.OnQueryCommand(object target = {Infragistics.Windows.Editors.XamDateTimeEditor}, System.Windows.Input.CanExecuteRoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0xe6 octets PresentationCore.dll!System.Windows.Input.CommandBinding.OnCanExecute(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0x50 octets PresentationCore.dll!System.Windows.Input.CommandManager.FindCommandBinding(System.Windows.Input.CommandBindingCollection commandBindings = {System.Windows.Input.CommandBindingCollection}, object sender = {Infragistics.Windows.Editors.XamDateTimeEditor}, System.Windows.RoutedEventArgs e = {System.Windows.Input.CanExecuteRoutedEventArgs}, System.Windows.Input.ICommand command = {System.Windows.Input.RoutedUICommand}, bool execute = false) + 0xc2 octets PresentationCore.dll!System.Windows.Input.CommandManager.FindCommandBinding(object sender = {Infragistics.Windows.Editors.XamDateTimeEditor}, System.Windows.RoutedEventArgs e = {System.Windows.Input.CanExecuteRoutedEventArgs}, System.Windows.Input.ICommand command = {System.Windows.Input.RoutedUICommand}, bool execute = false) + 0x127 octets PresentationCore.dll!System.Windows.Input.CommandManager.OnCanExecute(object sender = {Infragistics.Windows.Editors.XamDateTimeEditor}, System.Windows.Input.CanExecuteRoutedEventArgs e = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0x26 octets PresentationCore.dll!System.Windows.UIElement.OnCanExecuteThunk(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e) + 0x44 octets PresentationCore.dll!System.Windows.Input.CanExecuteRoutedEventArgs.InvokeEventHandler(System.Delegate genericHandler, object target) + 0x41 octets PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x27 octets PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e octets PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source = {Infragistics.Windows.Editors.SectionsList}, System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}, bool reRaised = false) + 0x1bf octets PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender = {Infragistics.Windows.Editors.SectionsList}, System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0x79 octets PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}, bool trusted) + 0x35 octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CriticalCanExecuteWrapper(object parameter, System.Windows.IInputElement target, bool trusted, System.Windows.Input.CanExecuteRoutedEventArgs args) + 0x80 octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CanExecuteImpl(object parameter, System.Windows.IInputElement target, bool trusted, out bool continueRouting = false) + 0xae octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CriticalCanExecute(object parameter, System.Windows.IInputElement target, bool trusted, out bool continueRouting) + 0x3a octets PresentationCore.dll!System.Windows.Input.CommandManager.TransferEvent(System.Windows.IInputElement newSource, System.Windows.Input.CanExecuteRoutedEventArgs e = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0x52 octets PresentationCore.dll!System.Windows.Input.CommandManager.OnCanExecute(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e) + 0x8c octets PresentationCore.dll!System.Windows.UIElement.OnCanExecuteThunk(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e) + 0x44 octets PresentationCore.dll!System.Windows.Input.CanExecuteRoutedEventArgs.InvokeEventHandler(System.Delegate genericHandler, object target) + 0x41 octets PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x27 octets PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x3e octets PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source = {Infragistics.Windows.Editors.SectionsList}, System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}, bool reRaised = false) + 0x1bf octets PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender = {Infragistics.Windows.Editors.SectionsList}, System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}) + 0x79 octets PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args = {System.Windows.Input.CanExecuteRoutedEventArgs}, bool trusted) + 0x35 octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CriticalCanExecuteWrapper(object parameter, System.Windows.IInputElement target, bool trusted, System.Windows.Input.CanExecuteRoutedEventArgs args) + 0x80 octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CanExecuteImpl(object parameter, System.Windows.IInputElement target, bool trusted, out bool continueRouting = false) + 0xae octets PresentationCore.dll!System.Windows.Input.RoutedCommand.CriticalCanExecute(object parameter, System.Windows.IInputElement target, bool trusted, out bool continueRouting) + 0x3a octets
thank you
Can you provide a sample that demonstrates the issue? if not can you provide more information on how we might reproduce the problem or can you provide some portion of the callstack from the stack overflow?