Пример #1
0
        private async void GruposGrid_ItemClick(object sender, ItemClickEventArgs e)
        {
            var        myView    = CoreApplication.CreateNewView();
            int        newViewId = 0;
            object     f         = e.ClickedItem;
            GruposItem item      = (e.ClickedItem) as GruposItem;

            if (item.Categoria == "Agregar")
            {
                this.AgregarGruposPopup.IsOpen = true;
            }
            else
            {
                await myView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    Frame newFrame = new Frame();
                    newFrame.Navigate(typeof(Pagina_Consultas), f);
                    Window.Current.Content = newFrame;
                    Window.Current.Activate();
                    newViewId = ApplicationView.GetForCurrentView().Id;
                });

                await ApplicationViewSwitcher.TryShowAsStandaloneAsync(newViewId, ViewSizePreference.UseHalf);
            }
        }
Пример #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
            ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar;

            titleBar.ButtonBackgroundColor         = Colors.Transparent;
            titleBar.ButtonInactiveBackgroundColor = Colors.Transparent;

            grupo_seleccionado = (e.Parameter) as GruposItem;
            AlumnosPtr         = await DBAssets.GetInfoAlumnosAsync((App.Current as App).ConnectionString, grupo_seleccionado.Subhead, "");

            InventoryList.ItemsSource = AlumnosPtr;
        }