David Bekham
David Bekham

Reputation: 2175

How to change the cursor to Hand in Windows phone?

I am using the following Hyperlink Text by using the 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?

Upvotes: 0

Views: 537

Answers (1)

Peter
Peter

Reputation: 14108

WP7 is an OS for a phone, so it has no cursor, like lukas said. But, assuming you're using Silverlight, it can be done (if your application will run in Windows/browser). 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?

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...." />

Upvotes: 1

Related Questions