Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
pseudo hyperlink in XamDataPresenter
posted

I store the name of the document in the a field in the database but I actually store the document in the filesystem.  Is there a way to make a column that displays the icon of the type of file (i.e. PDF, DOC, DOCX) and when the user clicks on the icon it brings up the document in a new WPF window or page.  How do I do this?

Thanks,

Linda Rawson

Parents
  • 12773
    posted

    Hello Linda,

    There is no built in functionality to achieve that now. First you can get the icon form file system file. You can look at this article showing how to get the icon of the file type.
    http://www.codeproject.com/KB/cs/GetFileTypeAndIcon.aspx

    Regarding the second requirement to open this file in a WPF window or other page, this also is not supported, because of the fact that every different file have different file format of storing the data in to a file system. So you open these files in default programs  by :
    Process.Start(fileName);

    Let me know if that helps.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.

Reply Children