Hello,
At that time it is scrolling to top and Focusing the MainEntry.i need solution to unfocus it.
You can do this by adding myScrollView.Unfocus();
when you execute OnMainStackLayoutTapped
like the following code.
private async void OnMainStackLayoutTapped(object sender, TappedEventArgs e)
{
if (ChildStackLayout.IsVisible) {
ChildStackLayout.IsVisible = false;
}
else
{
ChildStackLayout.IsVisible = true;
}
await Task.Delay(100);
myScrollView.Unfocus();
await Task.Delay(100);
await ScrollView.ScrollToAsync(0, 170, false);
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.