How to declare in XAML a MouseDoubleClick event on a RadTreeViewItem

1 posts, 0 answers
  1. alino
    alino avatar
    22 posts
    Member since:
    Sep 2010

    Posted 20 Sep 2010 Link to this post

    Hi,

    I have a problem how to declare the MouseDoubleClick event using XAML in The MVVM pattern. For the the event associated to the RadTreeView I do not have problem. I do like this in my XAML:
    <telerik:RadTreeView .......>
      <i:Interaction.Triggers>
       <i:EventTrigger EventName="LoadOnDemand">
        <vm:InvokeDelegateCommandAction Command="{StaticResource loadOnDemandCommand}" 
        CommandParameter="{Binding RelativeSource={RelativeSource Self, Path=InvokeParameter}"/>
       </i:EventTrigger>
      <i:Iteraction.Triggers>
    </telerik:RadTreeView>

    In the code snippet, I have created a command named  loadOnDemandCommand which is associated to the LoadOnDemandMethod in the viewModel when the LoadOnDemand event fires.

    How can I do in XAML to declare a DoubleClick event which fires after double clicking on the RadTreeViewItem.

    Thanks for your precious Help.

    Alino 

     
Back to Top