Set cursor for Line shape : Cursor « Windows Presentation Foundation « VB.Net






Set cursor for Line shape

Set cursor for Line shape
     
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Fun with Graphics!" Height="345" Width="452">

  <Canvas>
    <Line Name="myLine" Cursor ="Hand"
      X1="10" Y1="10" X2="40" Y2="90"
      Stroke="Black" StrokeThickness="15" 
      StrokeEndLineCap ="Round" StrokeStartLineCap ="Triangle"/>

  </Canvas>


</Window>

   
    
    
    
    
  








Related examples in the same category

1.Set cursor area
2.Changing the cursor of the Border control by setting the Cursor property