RadRibbonGallery.PopupMenuItems animation exception

2 posts, 0 answers
  1. Arnstein
    Arnstein avatar
    36 posts
    Member since:
    Oct 2012

    Posted 05 Jan 2015 Link to this post

    Hi, after moving from Telerik 2013.3 to 2014.3 we get an exception when the popupmenuitems in a radribbongallery is about to expand. We are using the same control several places in our application and it only fails one place, so it takes some wizardry to make it fail. I am not able to reproduce this in a test exampleb but if you by chance have any suggestions on things to try it would be appreciated.

    Here's a simpliefied xaml that fails:
                <telerik:RadRibbonGallery.PopupMenuItems>
                    <telerik:RadMenu ClickToOpen="False">
                    <telerik:RadMenuItem Header="Test">
                        <telerik:RadMenuItem Header="Test submenu"/>
                    </telerik:RadMenuItem>
                    </telerik:RadMenu>
                </telerik:RadRibbonGallery.PopupMenuItems>

    Here's the exception details:

    Exception1:
    Cannot perform action because the specified Storyboard was not applied to this object
    for interactive control.

    System.Windows.Media.Animation.Storyboard

    GetStoryboardClock

    Source:
    PresentationFramework


    Target:
    System.Windows.Media.Animation.Clock
    GetStoryboardClock(System.Windows.DependencyObject, Boolean,
    InteractiveOperation)

     

    Stacktrace:   
    at
    System.Windows.Media.Animation.Storyboard.GetStoryboardClock(DependencyObject
    o, Boolean throwIfNull, InteractiveOperation operation)

      
    at System.Windows.Media.Animation.Storyboard.GetCurrentStateImpl(DependencyObject
    containingObject)

      
    at System.Windows.Media.Animation.Storyboard.GetCurrentState()

      
    at
    Telerik.Windows.Controls.Animation.AnimationManager.StopIfRunning(FrameworkElement
    target, String animationName, Boolean animateSelf)

      
    at Telerik.Windows.Controls.RadMenuItem.OnIsSubmenuOpenChanged(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 Telerik.Windows.Controls.RadMenuItem.set_IsSubmenuOpen(Boolean value)

      
    at Telerik.Windows.Controls.RadMenuItem.CloseMenu()

      
    at Telerik.Windows.Controls.RadMenuItem.OnIsSelectedChanged(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 Telerik.Windows.Controls.RadMenuItem.set_IsSelected(Boolean value)

      
    at Telerik.Windows.Controls.MenuBase.set_CurrentSelection(RadMenuItem value)

      
    at Telerik.Windows.Controls.MenuBase.CloseAll()

      
    at Telerik.Windows.Controls.RadMenuItem.OnCloseTimerTick(Object sender,
    EventArgs e)

      
    at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)

      
    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)





  2. Milena
    Admin
    Milena avatar
    201 posts

    Posted 06 Jan 2015 Link to this post

    Hello Arnstein,

    I am sorry to hear about the issue you are experiencing. 

    Unfortunately I was not able to reproduce the described behavior too. However I attached the test project I used. Please feel free to modify it in order to show us how to reproduce the described behavior.

    Also, to be able to investigate the issue further, it would be helpful to know:
    - when you get the exception - when you try to open the gallery or the menu inside it;
    - do you have a custom style for the RadMenu;
    - can you reproduce the same behavior outside the RadRibbonGallery 

    Thank you in advance for your cooperation. 


    Regards,
    Milena
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top