Exemplo n.º 1
0
        private void LimpiarVista()
        {
            model.ClearFileList();
            model.setArchivos();

            Type s = (Type)FragmentFrame.Content.GetType();

            FragmentFrame.Navigate(s);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Type s = (Type)e.Parameter;

            FragmentFrame.Navigate(s);

            // Scanner
            model = new EscanerDataContext(s);

            if (!model.ScannerDataContext.WatcherStarted)
            {
                model.ScannerDataContext.StartScannerWatcher();
            }
            model.carpeta = s;
            model.ClearFileList();

            rootPage.DataContext = model;
        }