Jean Dupont
Jean Dupont

Reputation: 65

Event OnClick on a TextBox ? (C# Win8)

I'm looking for an event like "OnClick" on a TextBox.

My goal is just to erase the text when the user click on the TextBox.

I'm working on VS2012 for Windows 8.

Thanks.

Upvotes: 2

Views: 1337

Answers (2)

Jamie
Jamie

Reputation: 4960

Are you looking for the Tapped event? This pretty much the new Click or Clicked event for touch based Windows development which includes Windows 8 store apps and Windows Phone apps

Upvotes: 0

SLaks
SLaks

Reputation: 887365

You should handle the GotFocus event.

Upvotes: 1

Related Questions