OpenFileDialog.ShowReadOnly does not work · Issue #6346 · dotnet/wpf (original) (raw)
- .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:
OpenFileDialog ofd = new OpenFileDialog(); ofd.ShowReadOnly = true; ofd.ShowDialog();