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

RadRibbonGallery.PopupMenuItems animation exception

1 Answer 90 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Arnstein
Top achievements
Rank 1
Arnstein asked on 05 Jan 2015, 08:49 AM
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)





1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 06 Jan 2015, 12:09 PM
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.

 
Tags
RibbonView and RibbonWindow
Asked by
Arnstein
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or