ok agreed so now changed to
<DockPanel LastChildFill="True">
<Button Name="buttonToolLine" DockPanel.Dock="Top" Height="41" >Line</Button>
<Canvas Name="DrawingCanvas" MouseDown="DrawingCanvas_MouseDown" MouseLeave="DrawingCanvas_MouseLeave"></Canvas>
</DockPanel>
and the code behind code also changed still the even is not hit