Example #1
0
 private void OnBackPressed(object sender, BackPressedEventArgs e)
 {
     if (ProductDetailsPanel.IsOpen)
     {
         e.Handled = true;
         ProductDetailsPanel.Close();
     }
 }
Example #2
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            this.navigationHelper.OnNavigatedTo(e);
            this.SetupStatusBar();

            // Prevent screen timeout
            displayRequest.RequestActive();

            Application.Current.Resuming     += OnResuming;
            Application.Current.Suspending   += OnSuspending;
            Window.Current.VisibilityChanged += OnWindowVisibilityChanged;

            var ignore = InitializeCaptureAsync();

            if (ProductDetailsPanel.IsOpen)
            {
                ProductDetailsPanel.Close();
            }

            ProductsListBox.RemoveReportedProducts();
        }
Example #3
0
        private void OnProductSelected(object sender, ProductEventArgs e)
        {
            ProductItem productItem = (ProductItem)sender;

            ProductDetailsPanel.Open(productItem);
        }