Is it possible to handle RadDragAndDropManager DragQuery event without code behind?

2 posts, 0 answers
  1. Rodd
    Rodd avatar
    7 posts
    Member since:
    Jul 2010

    Posted 26 Aug 2011 Link to this post

    I have a RadTreeView control.  Currently in code behind I'm doing:
    public EntityNavigator()
        UnitTree.AddHandler(RadDragAndDropManager.DropQueryEvent, new EventHandler<DragDropQueryEventArgs>(UnitTree_DropQuery), true);

    I typically try to do as little code behind as possible and I'd prefer to handle this in my ViewModel instead.  Is there a way to handle the DragQuery in my ViewModel via a xaml binding rather than doing AddHandler() in my code behind?

    Thanks for your help.

  2. Petar Mladenov
    Petar Mladenov avatar
    3162 posts

    Posted 31 Aug 2011 Link to this post

    Hello Rodd,

     This is the only way to add handler for already handled events.Feel free to ask if you have more questions.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top