Remove item inside command for item?

2 posts, 0 answers
  1. Adam
    Adam  avatar
    30 posts
    Member since:
    Jun 2009

    Posted 21 Apr 2010 Link to this post

    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:

      <Message>Object reference not set to an instance of an object.</Message>
      <StackTrace>   at
    Telerik.Windows.Controls.Animation.AnimationManager.InvkokeCallbacks(Storyboard  storyboard)
    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>

    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?


  2. Hristo
    Hristo avatar
    832 posts

    Posted 27 Apr 2010 Link to this post

    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,
    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.
Back to Top