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






<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>
WPF Set Cursor For Line Shape








16.61.Cursor
16.61.1.Set cursor for Line shapeSet cursor for Line shape
16.61.2.Set cursor areaSet cursor area
16.61.3.Changing the cursor of the Border control by setting the Cursor propertyChanging the cursor of the Border control by setting the Cursor property