How to restore scroll position of the GridView when navigating back Visual Basic

I want to restore the scroll position when navigating back, I have found a C# code and tried to convert in to Visual Basic and currently is giving me lots of errors.

C# code:

void ItemsPage_Loaded(object sender, RoutedEventArgs e)
{
   this.gridScrollViewer = FindVisualChild<ScrollViewer>(this.itemGridView);
   this.gridScrollViewer.ScrollToHorizontalOffset(App.ScrollOffset);
}

protected override void OnNavigatedFrom(NavigationEventArgs e)
{
   App.ScrollOffset = gridScrollViewer.HorizontalOffset;
   base.OnNavigatedFrom(e);
}

And my converted VB code:

Private Sub ItemsPage_Loaded(sender As Object, e As RoutedEventArgs)
    Me.gridScrollViewer = FindVisualChild(Of ScrollViewer)(Me.itemGridView)
    Me.gridScrollViewer.ScrollToHorizontalOffset(App.ScrollOffset)
End Sub
Protected Overrides Sub OnNavigatedFrom(e As NavigationEventArgs)
    App.ScrollOffset = gridScrollViewer.HorizontalOffset

    MyBase.OnNavigatedFrom(e)
End Sub

Errors:

enter image description here

Kerry in Nigeria to warn against postelection violence

Nigeria's President, Goodluck Jonathan, right, walks with U.S. Secretary of State, John Kerry, on his arrival at the State House in Lagos, Nigeria, Sunday, Jan. 25, 2015. In a rare high-level visit to Africa's most populous country, U.S. Secretary of State John Kerry on Sunday urged Nigeria's leading presidential candidates to refrain from fomenting violence after next month's vote, and he condemned savage attacks by Boko Haram, an al-Qaida-linked insurgency. (AP Photo/Akintunde Akinleye, Pool)LAGOS, Nigeria (AP) — In a rare high-level visit to Africa's most populous country, U.S. Secretary of State John Kerry on Sunday urged Nigeria's leading presidential candidates to refrain from fomenting violence after next month's vote, and he condemned savage attacks by Boko Haram, an al-Qaida-linked insurgency.


Housewife1on1 Mercedes Ashley

Category: Other
Seeder: 0
Leecher: 0
Size: 203.23 MB

See more @ TorrentR.eu