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

Remove item inside command for item?

1 Answer 25 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 21 Apr 2010, 07:50 PM
Hi, my application creates a tab then adds a "close" menu item that is bound to a command. Inside the command I remove the tab, then I want to also remove the menu item. I'm getting this error:


<Exception>
  <Message>Object reference not set to an instance of an object.</Message>
  <StackTrace>   at
Telerik.Windows.Controls.RadMenuItem.<>c__DisplayClass3.<OnIsSubmenuOpenChanged>b__1()
   at
Telerik.Windows.Controls.Animation.AnimationManager.InvkokeCallbacks(Storyboard  storyboard)
   at
Telerik.Windows.Controls.Animation.AnimationManager.OnStoryboardCompleted(Object  sender, EventArgs e)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex,
Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr
unmanagedObjArgs, Int32 argsTypeIndex, String eventName)</StackTrace>
</Exception>

I'm guessing it's because I'm trying to remove the item inside the command it is bound to. How can I accomplish this?

Thanks!

Adam

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 27 Apr 2010, 08:14 AM
Hi Adam,

The problem is fixed and the fix will be available in this Friday latest internal build.
I'm sorry for the caused inconvenience.

Kind regards,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Adam
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or