Hi I have no ide why it isn't work. It looks like I can't use this event on InkCanvas.
XAML
<Window x:Class="PolyLine.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<StackPanel >
<Button Name="Button1">Clear</Button>
<InkCanvas x:Name="MC" MouseLeftButtonDown="MC_MouseLeftButtonDown" MouseRightButtonDown="MC_MouseRightButtonDown" MouseMove="MC_MouseMove" Background="White" Height="300" Width="497" ></InkCanvas>
</StackPanel>
Code Behind
private void MC_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
polylinePoints.Add(e.GetPosition(MC));
}