Example #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
                AppViewBackButtonVisibility.Visible;
            if (e.Parameter is Categorias)
            {
                Categorias c = (Categorias)e.Parameter;
                PageName = EnumHelper.GetEnumDescription(c);
                switch (c)
                {
                case Categorias.Salgados:
                    Itens.ItemsSource = Tipo.GetByCategory(Categorias.Salgados);
                    break;

                case Categorias.Doces:
                    Itens.ItemsSource = Tipo.GetByCategory(Categorias.Doces);
                    break;

                default:
                    break;
                }
            }
        }