Closed deepaksm1 closed 9 years ago
How to handle InputBindings and MouseBinding inside data template like below example? I am trying to use it in fayde but is it shows me error on MouseBinding.
<ListView ItemsSource="{Binding Model.TablesView}" Grid.Row="1" SelectedItem="{Binding Model.SelectedTable, Mode=TwoWay}" > <ListView.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Path=.}" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListView}}}" > <TextBlock.InputBindings> <MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DataContext.MoveItemRightCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" CommandParameter="{Binding .}"/> </TextBlock.InputBindings> </TextBlock> </DataTemplate> </ListView.ItemTemplate> </ListView>
See Issue #137
How to handle InputBindings and MouseBinding inside data template like below example? I am trying to use it in fayde but is it shows me error on MouseBinding.