I have RTF files that have an extension other than RTF
I would like to have the OpenDocumentCommand of the RichTexctBox do one of two things:
1. When the "All Files" filter is selected have it not rely on the file extension to determine the file type.
My reasoning is that if the file were of one of the 'supported' file extensions then the user would not need to use the 'All Files' option.
Currently if I select the "All Files" filter, then select an RTF file with an extension other than .rtf (say .cci) the editor complains that the file is of an unsupported type.
If, however, I rename the file to .rtf it will open.
2. Alternately allow me to add my own filters (like *.cci) and associate a format provider of the appropriate type (in this case RTF).
Now I could just take over the whole process and use my own OpenFileDialog in place of the OpenDocumentCommand, but if there is a way to extend the OpenDocumentCommand that would be nice.
I would like to have the OpenDocumentCommand of the RichTexctBox do one of two things:
1. When the "All Files" filter is selected have it not rely on the file extension to determine the file type.
My reasoning is that if the file were of one of the 'supported' file extensions then the user would not need to use the 'All Files' option.
Currently if I select the "All Files" filter, then select an RTF file with an extension other than .rtf (say .cci) the editor complains that the file is of an unsupported type.
If, however, I rename the file to .rtf it will open.
2. Alternately allow me to add my own filters (like *.cci) and associate a format provider of the appropriate type (in this case RTF).
Now I could just take over the whole process and use my own OpenFileDialog in place of the OpenDocumentCommand, but if there is a way to extend the OpenDocumentCommand that would be nice.