This is a migrated thread and some comments may be shown as answers.

FakePopupWindow

3 Answers 113 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 06 May 2010, 10:25 PM
Hi,

In my application I get regulary this message:

System.InvalidOperationException was unhandled by user code
  Message=Specified element is already the logical child of another element. Disconnect it first.
  Source=PresentationFramework
  StackTrace:
       at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
       at System.Windows.FrameworkElement.AddLogicalChild(Object child)
       at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
       at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)
       at Telerik.Windows.Controls.Docking.FakePopupWindow.OnContentChanged(Object oldContent, Object newContent) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 46
       at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.ContentControl.set_Content(Object value)
       at Telerik.Windows.Controls.Docking.FakePopupWindow..ctor(Window owner, FakePopup p) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 34
       at Telerik.Windows.Controls.Docking.FakePopup.Open() in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 52
       at Telerik.Windows.Controls.Docking.FakePopup.OnLoaded(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 143
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       at MS.Internal.LoadedOrUnloadedOperation.DoWork()
       at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       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:

Any idea what can cause this problem?

Thanks in advance,
Thomas

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2010, 11:15 AM
Hello Thomas,

 Could you please give us some more information about the way you use the Docking control and the situations in which this problem occur? If you could send us a sample project that reproduces the problem this would be very helpful.

Regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Steve Marks
Top achievements
Rank 1
answered on 14 May 2010, 11:07 PM
I'm also experiencing this issue.  Has there been any further progress on its resolution?
0
Miroslav Nedyalkov
Telerik team
answered on 17 May 2010, 12:05 PM
Hello Steve,

Could you please send a sample project that reproduces the problem? This would help us find out what the problem is.

Regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Thomas
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Steve Marks
Top achievements
Rank 1
Share this question
or