Hi
I'm in the process of moving from the WPF TreeView to RadTreeView. I noticed I lost some capability with mouse double click when I changed it over to RadTreeView
Basically, I'm binding the tree items to a double click to a command. It's not workign in RadTreeView, Any ideas?
Thanks, Dave
I'm in the process of moving from the WPF TreeView to RadTreeView. I noticed I lost some capability with mouse double click when I changed it over to RadTreeView
<telerik:RadTreeView x:Name="DeviceTreeView" Margin="2" VerticalContentAlignment="Top" ItemsSource="{Binding Recievers}" IsExpandOnDblClickEnabled="False"> <telerik:RadTreeView.Resources> <HierarchicalDataTemplate DataType="{x:Type ViewModel:RecieverViewModel}" ItemsSource="{Binding Children}" > <StackPanel Orientation="Horizontal" > <!-- <Image Width="16" Height="16" Margin="3,0" Source="Images\Region.png" /> --> <TextBlock Text="{Binding Id}"> <TextBlock.InputBindings> <MouseBinding Gesture="LeftDoubleClick" Command="{Binding Path=DataContext.OpenRecieverVisTabCommand, RelativeSource={RelativeSource AncestorType={x:Type TreeView}}}" CommandParameter="{Binding Id}"/> </TextBlock.InputBindings> </TextBlock> </StackPanel> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type ViewModel:TripodViewModel}" ItemsSource="{Binding Children}" > <StackPanel Orientation="Horizontal" > <!-- <Image Width="16" Height="16" Margin="3,0" Source="Images\State.png" /> --> <TextBlock Text="{Binding Id}"> <TextBlock.InputBindings> <MouseBinding Gesture="LeftDoubleClick" Command="{Binding Path=DataContext.OpenTripodVisTabCommand, RelativeSource={RelativeSource AncestorType={x:Type TreeView}}}" CommandParameter="{Binding Id}"/> </TextBlock.InputBindings> </TextBlock> </StackPanel> </HierarchicalDataTemplate> </telerik:RadTreeView.Resources> <telerik:RadTreeView.ItemContainerStyle> <!-- This Style binds a TreeViewItem to a TreeViewItemViewModel. --> <Style TargetType="{x:Type telerik:RadTreeViewItem}"> <Setter Property="IsExpanded" Value="true" /> <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> <Setter Property="FontWeight" Value="Normal" /> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="FontWeight" Value="Bold" /> </Trigger> </Style.Triggers> </Style> </telerik:RadTreeView.ItemContainerStyle> </telerik:RadTreeView>Basically, I'm binding the tree items to a double click to a command. It's not workign in RadTreeView, Any ideas?
Thanks, Dave
