1
votes

How I can get behavior of form in windows Phone like Settings >> Mobile Network >> EditAPN. In this page it have many textboxes in scrollviewer. When user taps on any textbox and its get focus then the page scrolls up and header remains constant and SIP keyboard shown. And when user lost the focus from this text box then page comes to its normal state and SIP keyboard hides and header remains unchanged. I want to achieve this behavior. I placed some textboxes in scrollviewer and on each textbox got focus event I am doing this.

this.Scroller.ScrollToVerticalOffset(this.txtbox1.ActualHeight); 
this.Scroller.UpdateLayout();

But Its not working for me. Any help will be appreciates

1

1 Answers

0
votes

One way to do that is to reset default behavior to move page up when SIP is visible with code:

(App.Current as App).RootFrame.RenderTransform = new CompositeTransform();

on TextBox_Focus event. Than collapse header and scroll manually what you need.