Cyclic reference while evaluating style property

3 posts, 1 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Jun 2017

    Posted 08 Jun Link to this post

    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!

     

     

  2. Answer
    Dinko
    Admin
    Dinko avatar
    415 posts

    Posted 12 Jun Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Michael
    Michael avatar
    2 posts
    Member since:
    Jun 2017

    Posted 13 Jun in reply to Dinko Link to this post

    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

Back to Top