如何在矩形上设置mouseenter触发器



有一个矩形

  <Rectangle Name="rectangle1"
             Width="24"
             Height="288"
             HorizontalAlignment="Left"
             VerticalAlignment="Top"
             Stroke="Transparent"
             StrokeThickness="1" >

如何在矩形上设置鼠标输入的触发器?

尝试将Fill="Transparent"添加到Rectangle的属性集。

最新更新