Hi,
I keep getting an exception when loading the saved layout:
"System.InvalidOperationException" wurde aufgefangen. Message=Beim Auswerten der Style-Eigenschaft für Element "Infragistics.Windows.DataPresenter.XamDataPresenter" wurde ein zyklischer Verweis gefunden. Source=PresentationFramework StackTrace: bei System.Windows.FrameworkElement.UpdateStyleProperty() bei System.Windows.TreeWalkHelper.InvalidateStyleAndReferences(DependencyObject d, ResourcesChangeInfo info, Boolean containsTypeOfKey) bei System.Windows.TreeWalkHelper.OnResourcesChanged(DependencyObject d, ResourcesChangeInfo info, Boolean raiseResourceChangedEvent) bei System.Windows.FrameworkElement.OnAncestorChangedInternal(TreeChangeInfo parentTreeState) bei System.Windows.TreeWalkHelper.OnAncestorChanged(DependencyObject d, TreeChangeInfo info) bei System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d) bei MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.VisitNode(FrameworkElement fe) bei System.Windows.DescendentsWalker`1.VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren) bei System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren) bei System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d) bei System.Windows.DescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei MS.Internal.PrePostDescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation) bei System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent) bei System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent) bei System.Windows.Media.Visual.AddVisualChild(Visual child) bei System.Windows.FrameworkElement.set_TemplateChild(UIElement value) bei System.Windows.Controls.ContentPresenter.UseContentTemplate.BuildVisualTree(FrameworkElement container) bei System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate) bei System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container) bei System.Windows.FrameworkElement.ApplyTemplate() bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.Controls.Border.MeasureOverride(Size constraint) bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.Controls.Border.MeasureOverride(Size constraint) bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.Controls.Border.MeasureOverride(Size constraint) bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.Controls.Border.MeasureOverride(Size constraint) bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.Controls.DockPanel.MeasureOverride(Size constraint) bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) bei System.Windows.UIElement.Measure(Size availableSize) bei System.Windows.ContextLayoutManager.UpdateLayout() bei System.Windows.UIElement.UpdateLayout() bei Infragistics.Windows.ExpanderDecorator.AnimateSize(Boolean newIsExpandedValue) bei Infragistics.Windows.ExpanderDecorator.OnIsExpandedChanged(DependencyObject target, DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) bei System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) bei Infragistics.Windows.ExpanderDecorator.set_IsExpanded(Boolean value) bei Infragistics.Windows.ExpanderDecorator.OnCoerceOrientation(DependencyObject target, Object value) bei System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) bei System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot) bei System.Windows.StyleHelper.ClearTemplateChain(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, List`1 templateChain, FrameworkTemplate oldFrameworkTemplate) bei System.Windows.StyleHelper.ClearGeneratedSubTree(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, FrameworkTemplate oldFrameworkTemplate) bei System.Windows.StyleHelper.DoTemplateInvalidations(FrameworkElement feContainer, FrameworkTemplate oldFrameworkTemplate) bei System.Windows.Controls.Control.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.GroupByAreaBase.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) bei System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents) bei System.Windows.StyleHelper.DoStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle) bei System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache) bei System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.GroupByAreaBase.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) bei System.Windows.FrameworkElement.UpdateStyleProperty() bei System.Windows.TreeWalkHelper.InvalidateStyleAndReferences(DependencyObject d, ResourcesChangeInfo info, Boolean containsTypeOfKey) bei System.Windows.TreeWalkHelper.OnResourcesChanged(DependencyObject d, ResourcesChangeInfo info, Boolean raiseResourceChangedEvent) bei System.Windows.FrameworkElement.OnAncestorChangedInternal(TreeChangeInfo parentTreeState) bei System.Windows.TreeWalkHelper.OnAncestorChanged(DependencyObject d, TreeChangeInfo info) bei System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d) bei MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.VisitNode(FrameworkElement fe) bei System.Windows.DescendentsWalker`1.VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren) bei System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren) bei System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d) bei System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d) bei MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.VisitNode(FrameworkElement fe) bei System.Windows.DescendentsWalker`1.VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren) bei System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren) bei System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d) bei System.Windows.DescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei MS.Internal.PrePostDescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation) bei System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent) bei System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent) bei System.Windows.Media.Visual.RemoveVisualChild(Visual child) bei System.Windows.FrameworkElement.set_TemplateChild(UIElement value) bei System.Windows.StyleHelper.ClearGeneratedSubTree(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, FrameworkTemplate oldFrameworkTemplate) bei System.Windows.StyleHelper.DoTemplateInvalidations(FrameworkElement feContainer, FrameworkTemplate oldFrameworkTemplate) bei System.Windows.Controls.Control.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.DataPresenterBase.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.XamDataPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) bei System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents) bei System.Windows.StyleHelper.DoStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle) bei System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache) bei System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.DataPresenterBase.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei Infragistics.Windows.DataPresenter.XamDataPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs e) bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) bei System.Windows.FrameworkElement.UpdateStyleProperty() bei System.Windows.TreeWalkHelper.InvalidateStyleAndReferences(DependencyObject d, ResourcesChangeInfo info, Boolean containsTypeOfKey) bei System.Windows.TreeWalkHelper.OnResourcesChanged(DependencyObject d, ResourcesChangeInfo info, Boolean raiseResourceChangedEvent) bei System.Windows.FrameworkElement.OnAncestorChangedInternal(TreeChangeInfo parentTreeState) bei System.Windows.TreeWalkHelper.OnAncestorChanged(DependencyObject d, TreeChangeInfo info) bei System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d) bei MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.VisitNode(FrameworkElement fe) bei System.Windows.DescendentsWalker`1.VisitNode(DependencyObject d) bei System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren) bei System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren) bei System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d) bei System.Windows.DescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei MS.Internal.PrePostDescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode) bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation) bei System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent) bei System.Windows.FrameworkElement.RemoveLogicalChild(Object child) bei MS.Internal.Controls.InnerItemCollectionView.ClearModelParent(Object item) bei MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item) bei MS.Internal.Controls.InnerItemCollectionView.RemoveAt(Int32 index) bei System.Windows.Controls.ItemCollection.RemoveAt(Int32 removeIndex) bei Infragistics.Windows.DockManager.TabGroupPane.Infragistics.Windows.DockManager.IContentPaneContainer.RemoveContentPane(ContentPane pane, Boolean replaceWithPlaceholder) bei Infragistics.Windows.DockManager.XamDockManager.DestroyPaneElement(IContentPaneContainer container, ContentPane pane) bei Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelperImpl(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents, Boolean removeFromCurrentContainer) bei Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelper(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents, Boolean removeFromCurrentContainer) bei Infragistics.Windows.DockManager.XamDockManager.ClosePaneHelper(ContentPane pane, PaneCloseAction closeAction, Boolean raiseEvents) bei Infragistics.Windows.DockManager.LayoutManager.LoadLayout(XamDockManager dockManager, Stream stream) bei Infragistics.Windows.DockManager.XamDockManager.LoadLayout(Stream stream) bei VIS.TRACK.WindowMain.<XamRibbonWindow_Loaded>b__0(Object ) in WindowMain.xaml.cs:Zeile 185. InnerException:
Can someone please help me. I don't know where to begin fixing this problem. Is it a wrong layout file, a bug oder wrong code on my side.
Thanks,
Gawain
Hello Gawain,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post, but I wasn’t able to reproduce your behavior and get that exception. It seems like that this has been fixed in our latest supported versions. Also in the Feature Browser under xamDockManager / Interacting with the DockManager / Loading and Saving Layout you can see how to implement such functionality.
Feel free to write me if you have further questions.