My name is Edward Tanguay. I'm an American software and web developer living and working in Berlin, Germany.
WPF CODE EXAMPLE created on Tuesday, January 19, 2010 permalink
How to handle double-click in WPF when you don't need to handle single-click
This example is useful when you only need to handle double-clicking and don't need to differentiate it from single-clicking, in order to get them both to work on one FrameworkElement (i.e. not a Control), you might try this approach.
XAML:
<Window x:Class="TestDc234.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid Margin="10">
        <TextBlock Text="test" MouseDown="TextBlock_MouseDown"/>
    </Grid>
</Window>

Code-Behind:
using System.Windows;
using System.Windows.Input;

namespace TestDc234
{
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                if (e.ClickCount == 2)
                {
                    MessageBox.Show("you double-clicked");
                }
            }
        }
    }
}
need markup?