Skip to content

OpenFileControl crashes with invalid .png file #26

@mrbcmorris

Description

@mrbcmorris

Hi Folks,

Great library here, it's wonderful for helping spin up a WPF app with a modern feel. Appreciate your time on the project!

One thing I've noticed is if you have an invalid .png file in a directory, the OpenFileControl will crash hard with a COMException when navigating into that directory and trying to display the preview of the image.

To create a file for recreation, just simply add an empty text file to your system and change the extension on it from .txt to .png.

Is there anyway we could have a default image icon that we fallback to under these conditions?

Thanks again and let me know if I can provide more information!

Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions