Beispiel #1
0
        private async Task ShowHelp()
        {
            var doc = new LocalDocument(await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Help.md")));
            await doc.Load();

            Open(doc);
        }
Beispiel #2
0
        protected override void OnFileActivated(FileActivatedEventArgs args)
        {
            var locator = (ViewModelLocator)Resources["Locator"];
            var files   = args.Files;

            foreach (StorageFile file in files)
            {
                var x = new LocalDocument(file);
                x.Load();
                locator.Main.Open(x);
            }

            var rootFrame = Window.Current.Content as Frame;

            if (rootFrame == null)
            {
                rootFrame = new Frame();
                rootFrame.Navigate(typeof(MainPage));
                Window.Current.Content = rootFrame;
            }

            Window.Current.Activate();
        }