Hi,
I've get following error.
{System.ArgumentException: Value does not fall within the expected range.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
at System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
at Telerik.Windows.Controls.HACKS.AttachPopupToVisualTree(Popup popup)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.OpenWindow(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type)
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.Show()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.OpenPopup()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopup.Open(Boolean isModal)
at Telerik.Windows.Controls.RadWindow.ShowWindow(Boolean modal)
at Telerik.Windows.Controls.RadWindow.Show()
at Witcraft.Halcyone.Administration.Modules.Forms.AddOrUpdateItemDialog.Show()
at Witcraft.Halcyone.Presentation.DialogWindowService.Show[TView,TModel]()
at Witcraft.Halcyone.Administration.Modules.Forms.GenericFormViewModel`2.OnOpenUpdateItemDialogCommand(Object value)
at Witcraft.Halcyone.Presentation.Commands.DelegateCommand`1.Execute(T parameter)
at Witcraft.Halcyone.Presentation.Commands.DelegateCommand`1.System.Windows.Input.ICommand.Execute(Object parameter)
at Witcraft.Halcyone.Presentation.Commands.InvokeDelegateCommandAction.Invoke(Object parameter)
at System.Windows.Interactivity.TriggerAction.CallInvoke(Object parameter)
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at Witcraft.Halcyone.Presentation.Commands.CommandEventTrigger.OnEventFired(Object sender, EventArgs eventArgs)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)}
Show and Show Dialog methods are called from usercontrol that was dynamically created
public partial class Dialog : UserControl
{
public Dialog()
{
InitializeComponent();
window.ShowDialog();
}
}
Everything works nice when we use it pure new empty project, but inside our application which has deep control hierarchy it drop that exception.
Thanks,
Alexey Zakharov.
I've get following error.
{System.ArgumentException: Value does not fall within the expected range.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
at System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
at Telerik.Windows.Controls.HACKS.AttachPopupToVisualTree(Popup popup)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.OpenWindow(Popup popup, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type, Boolean attachToVisualRoot)
at Telerik.Windows.Controls.PopupManager.Open(Popup popup, PopupType type)
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.Show()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopupSilverlightFactory.WindowPopupSilverlightImpl.OpenPopup()
at Telerik.Windows.Controls.RadWindowPopup.WindowPopup.Open(Boolean isModal)
at Telerik.Windows.Controls.RadWindow.ShowWindow(Boolean modal)
at Telerik.Windows.Controls.RadWindow.Show()
at Witcraft.Halcyone.Administration.Modules.Forms.AddOrUpdateItemDialog.Show()
at Witcraft.Halcyone.Presentation.DialogWindowService.Show[TView,TModel]()
at Witcraft.Halcyone.Administration.Modules.Forms.GenericFormViewModel`2.OnOpenUpdateItemDialogCommand(Object value)
at Witcraft.Halcyone.Presentation.Commands.DelegateCommand`1.Execute(T parameter)
at Witcraft.Halcyone.Presentation.Commands.DelegateCommand`1.System.Windows.Input.ICommand.Execute(Object parameter)
at Witcraft.Halcyone.Presentation.Commands.InvokeDelegateCommandAction.Invoke(Object parameter)
at System.Windows.Interactivity.TriggerAction.CallInvoke(Object parameter)
at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
at Witcraft.Halcyone.Presentation.Commands.CommandEventTrigger.OnEventFired(Object sender, EventArgs eventArgs)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)}
Show and Show Dialog methods are called from usercontrol that was dynamically created
public partial class Dialog : UserControl
{
public Dialog()
{
InitializeComponent();
window.ShowDialog();
}
}
Everything works nice when we use it pure new empty project, but inside our application which has deep control hierarchy it drop that exception.
Thanks,
Alexey Zakharov.