AppStore.CategoriesPage.GridCategories_SelectionChanged C# (CSharp) Method

GridCategories_SelectionChanged() private method

Executed when the user taps/selects a category from the Categoires Page. The app navigates to its category-specific page.
private GridCategories_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
sender object Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event.
e SelectionChangedEventArgs SelectionChangedEventArgs e an instance of SelectionChangedEventArgs including, in many cases, an object which inherits from SelectionChangedEventArgs. Contains additional information about the event, and sometimes provides ability for code handling the event to alter the event somehow.
return void
        private void GridCategories_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (selectionGridCategories) return;
            CategoryInstance.category = (Categories)GridCategories.SelectedItem;
            Frame.Navigate(typeof(CategoryPage));
            selectionGridCategories = true; GridCategories.SelectedIndex = -1; selectionGridCategories = false;
        }