public AttachmentDetailViewModel(FileDescription file)
        {
            Title = file.Name;
            PrintCommand = new DelegateCommand<ChildWindow>(Print);

            var uriString = string.Concat(System.Windows.Browser.HtmlPage.Document.DocumentUri.ToString(), "api/files/", file.Id);
            Uri = new Uri(uriString, UriKind.Absolute);
        }
 private void OpenFile(FileDescription file)
 {
     openDetailRequest.Raise(new AttachmentDetailViewModel(file));
 }