Page Scroll on TAB hit.
hey guys,
have silverlight navigation application on 1 of pages have form filled out end user, has couple of textboxes filled, problem when hit tab key move next textbox cursor move next textbox in sequence page not scroll down new textbox cant see textbox though cursor in there....does know solution this??
appreciate help.
thank you,
chetan
hi,
fisrtly, add scrollview control contains form filled out end user.
and create event handle method textbox’s gotfoucus event. sample code below (sv name of scrollview control):
private void textbox_gotfocus(object sender, system.windows.routedeventargs e)
{
var tran = ((uielement)sender).transformtovisual(sv);
var svpositon = transform.transform(new point(0, 0));
sv.scrolltoverticaloffset(sv.verticaloffset + svpositon.y);
}
hope work you.
Silverlight > Accessing Web Services with Silverlight
Comments
Post a Comment