Hello.
I'm using double click cell event in grid for opening new form.
But when I try auto resize width column (double click on border between column header) or changing sorting mode (double click on column header) this event are executing too.
How I can use this event only for clicking current data row?
Edit:
Excuse me. Posted for WinForms forum...
<
DataTemplate
x:Key
=
"TitleTemplate"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
ContentPresenter
Content
=
"{Binding}"
Name
=
"titleTemplate"
Margin
=
"0,0,0,0"
/>
<
ContentPresenter
Content="{Binding
Path
=
SelectedPane
.Content.ToolStack,
RelativeSource={RelativeSource
AncestorType
=
FrameworkElement
}}"
Name
=
"toolStackHolder"
Margin
=
"0"
/>
</
Grid
>
</
DataTemplate
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
telerik:RadDocking.SerializationTag
=
"RecentFilesPane"
ContextMenuTemplate
=
"{x:Null}"
TitleTemplate
=
"{StaticResource ResourceKey=TitleTemplate}"
Header
=
"Recent Files"
CanUserPin
=
"True"
>
<!-- CONTENT FILLED DYNAMICALLY -->
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
John
<
ListView x:Name="lstRangeColors" Width="225" MaxHeight="275" ScrollViewer.VerticalScrollBarVisibility="Visible" Margin="0,0,0,0" ItemsSource="{Binding Path=Filters.RangeColors}" SelectedItem="{Binding Path=RangeColor}">
<ListView.ItemTemplate>
<DataTemplate>
<ContentPresenter Margin="5,5,5,5" Content="{Binding}">
<ContentPresenter.ContentTemplate>
<DataTemplate>
<Grid x:Name="gridContent" Height="35" VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20*"/>
<ColumnDefinition Width="60*"/>
<ColumnDefinition Width="40*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<CheckBox Grid.Row="0" Grid.Column="0" Width="40" IsChecked="{Binding RangeValue.IsSelected, Mode=TwoWay}" Margin="5,5,0,0"/>
<TextBox Grid.Row="0" Grid.Column="1" BorderBrush="Navy" BorderThickness="1" Width="40" Text="{Binding RangeValue, Mode=TwoWay}" Margin="15,0,0,0" FontSize="14" />
<<telerik:RadButton Grid.Row="0" Grid.Column="2" Height="30" Background="{Binding BlockColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}, Path=DataContext.SelectColorCommand}" HorizontalAlignment="Left" Margin="25,0,0,0" Name="btnColor" Width="40" />
</Grid>
</DataTemplate>
</ContentPresenter.ContentTemplate>
</ContentPresenter>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>