WPF click event handler get textblock text
问题 I have a text block in my xaml: <DataTemplate x:Key="InterfacesDataTemplate" DataType="ca:Interface"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="1" Text="{Binding Path=Name}" MouseLeftButtonDown="interface_mouseDown"/> </Grid> </DataTemplate> On the code behind I have an event handler for click (double-click) private void interface_mouseDown(object