开发者

Setting the Cursor property in Silverlight has no effect

开发者 https://www.devze.com 2023-02-13 15:48 出处:网络
I\'m trying to set the cursor so it changes to a hand when the mouse hovers the item. It doesn\'t seem to have any effect, the cursor remain开发者_运维技巧s the default one.

I'm trying to set the cursor so it changes to a hand when the mouse hovers the item. It doesn't seem to have any effect, the cursor remain开发者_运维技巧s the default one. Example:

<Grid x:Name="LayoutRoot" Background="White">
    <Rectangle Width="100" Height="100" Fill="Black" Cursor="Arrow" />
</Grid>

Any idea why?

Thanks!


Silly question, but...Arrow is basically the default cursor. Did you try this with other cursors like "Hand" or "Wait"?

0

精彩评论

暂无评论...
验证码 换一张
取 消