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

Cyclic reference while evaluating style property

4 Answers 291 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Jun 2017, 06:51 AM

Hi,

the last days, our customers suffer from following exception in our WPF/MVVM/PRISM/C# application. It is in German, but I give a translation for the important parts:

 

Source: PresentationFramework

HelpLink: null

Message: Beim Auswerten der Style-Eigenschaft für Element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0" wurde ein zyklischer Verweis gefunden. Translation: Cyclic reference found while evaluating the style property for element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0"

InnerException:  null

StackTrace:    bei System.Windows.FrameworkElement.UpdateStyleProperty()    

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.Media.VisualCollection.DisconnectChild(Int32 index)    

bei System.Windows.Media.VisualCollection.Clear()    

bei System.Windows.Controls.UIElementCollection.ClearInternal()    

bei System.Windows.Controls.Panel.ClearChildren()    

bei System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.ItemContainerGenerator.OnRefresh()    

bei System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)    

bei System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)    

bei System.Windows.WeakEventManager.D

 

The exception appears when I open the application, don't use it for at least one minute and then open a new dialog of the application. The dialog contains a RadRibbon usercontrol. Sometimes the exception occurs when I don't wait a minute, but it appears more reliable if I do.

 

It does not appear when I debug the application. However, If I use the release mode in Visual Studio 2015 and start the application without debugging, I can reproduce the exception.

Since I cannot debug the application for this issue, I only hope for a flash of inspiration on how I could further approach this issue. If you need further information, please tell me.

Thank you!

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 12 Jun 2017, 11:14 AM
Hello Michael,

Thank you for contacting us.

We are not aware of the observed exception and we weren't able to reproduce it when using RadRibbonView control. It will be great if you can send us isolated project reproducing this issue. This way we can further test it on our side. You can also tell us if you have specified custom styles to the RadRibbovView? Also, are you using NoXAML binaries?

In addition, you can take a look at this forum post where a similar issue was discussed.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Michael
Top achievements
Rank 1
answered on 13 Jun 2017, 09:18 AM

Hello Dinko,

 

thanks for your reply. However, I am not able to produce a minimal not-working example.

We use the generic theme and we do not include NoXAML.

The StackOverflow post differs from mine, because my exception does not occur deterministic, only sometimes. I also have checked my <ResourceDictionary.MergedDictionaries> and it only includes said generic.xaml.

 

Due to the lack of information I can give you, I improved the logging functionality of the application and hope that I can track down the issue in the future.

 

Thanks again, greetings,

 

Michael

1
Nico
Top achievements
Rank 1
answered on 23 Nov 2017, 03:01 PM

Hi Michael,

I ran into the same problem today, but I can't reproduce it. I also have no clue at all on how to solve it. Did you by any chance already find a solution?

 

Greetings,

Nico

0
Michael
Top achievements
Rank 1
answered on 24 Nov 2017, 05:58 AM

Hello Nico,

I don't have any new information, but I will share it if I find anything.

 

Greetings

Michael

Tags
RibbonView and RibbonWindow
Asked by
Michael
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Michael
Top achievements
Rank 1
Nico
Top achievements
Rank 1
Share this question
or