Hi
Its thee simplest case --
XAML Code
<Window x:Class="ActiproDragSelectSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:datagrid="http://schemas.actiprosoftware.com/winfx/xaml/datagrid"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<datagrid:ThemedDataGrid ItemsSource="{Binding Items}">
<DataGrid.Columns>
<DataGridTextColumn Width="Auto"
Binding="{Binding Path=.}"
Header="Name" />
</DataGrid.Columns>
</datagrid:ThemedDataGrid>
</Grid>
</Window>
c# code
using System.Collections.ObjectModel;
using System.Windows;
namespace ActiproDragSelectSample
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
this.DataContext = this;
Items = new ObservableCollection<string>();
Items.Add("Hi");
Items.Add("Hello");
Items.Add("1");
Items.Add("2");
Items.Add("3");
Items.Add("4");
Items.Add("5");
Items.Add("6");
Items.Add("7");
InitializeComponent();
}
public ObservableCollection<string> Items { get; set; }
}
}
in this example, if you mouse down on row and move your mouse to rows below, it selects all the rows, i want to stop this behaviour.
it should only select when shift or ctrol keys are pressed that too on click not on mouse move.
selection on mouse move makes drag drop impossible.
Thanks
Regards
Mudit M.