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

How to declare in XAML a MouseDoubleClick event on a RadTreeViewItem

0 Answers 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
alino
Top achievements
Rank 1
alino asked on 20 Sep 2010, 07:43 PM
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 

 

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
alino
Top achievements
Rank 1
Share this question
or