Windows 8 Metro declarations: File Type Associations

Topics: Actions & Coroutines, Getting Started
Dec 6, 2012 at 12:38 PM
Edited Dec 6, 2012 at 12:40 PM

Hey all,

I'm trying to follow this post on getting file associations to work in windows 8:

Essentially the code boils down overriding a method on the App.xaml.cs:


protected override void OnFileActivated(FileActivatedEventArgs args)
    PhotoView page = new PhotoView();
    page.SetPhoto(args.Files[0] as StorageFile);
    Window.Current.Content = page;

I've tried using navigationService, but from my understanding it only allows strings. I've also tried DisplayRootView<T>(args.Files[0]) but the Parameter field is still set to null;

How would I be able to do this in Caliburn? Thanks!

Dec 10, 2012 at 9:10 PM

I can't see any problems with using DisplayRootView<T>, is it possible for you to send a sample of it not working to ?