OpenFileDialog.ShowReadOnly does not work
Open
:construction: work in progress
Investigate
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
* .NET Core Version: 7.0.0-preview.2.22152.2
* Windows version: 22581.1.amd64fre.ni_release.220318-1623
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
**Problem description:**
The `OpenFileDialog` ignores the `ShowReadOnly` property on the Vista code path.
**Actual behavior:**
No check box in the dialog.
**Expected behavior:**
A check box in the dialog as per documentation.
A dropdown option on the Open button would also be acceptable:

**Minimal repro:**
```C#
OpenFileDialog ofd = new OpenFileDialog();
ofd.ShowReadOnly = true;
ofd.ShowDialog();
```
Contributor guide
Assessment
This issue has not been assessed yet.