简体   繁体   English

如何在Windows Phone中将光标更改为Hand?

[英]How to change the cursor to Hand in Windows phone?

I am using the following Hyperlink Text by using the TextBlock.... 我通过使用TextBlock使用以下超链接文本。

<Button Grid.Row="2" Foreground="#FF057BC3" FontFamily="Segoe WP SemiLight">
     <TextBlock Width="400" Margin="-28 -1 0 0" >
          <Underline>Cursor should be Hand when hits me....</Underline>
     </TextBlock>
</Button>

Is there any way to change Cursor to Hand when Mouse over in the TextBlock? 在TextBlock中将鼠标悬停在上方时,是否可以将光标更改为Hand?

WP7 is an OS for a phone, so it has no cursor, like lukas said. WP7是手机的操作系统,因此没有光标,就像lukas所说的那样。 But, assuming you're using Silverlight, it can be done (if your application will run in Windows/browser). 但是,假设您使用的是Silverlight,则可以完成此操作(如果您的应用程序将在Windows /浏览器中运行)。 You can change the cursor, and I would point you to this site for example. 您可以更改光标,例如,我将指向您指向该站点

But I see you're making a button with a textblock that is underlined. 但是我看到您正在制作一个带有带下划线的文本块的按钮。 Would Hyperlink or HyperlinkButton not better suit your needs? HyperlinkHyperlinkBut​​ton是否会更好地满足您的需求?

Something like: 就像是:

<HyperlinkButton Grid.Row="2" Foreground="#FF057BC3" FontFamily="Segoe WP SemiLight" click="HyperlinkButton_Click" Width="400" Margin="-28 -1 0 0" Content="text will be here...." />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM