Skip to content

More FileDialog tweaks#5102

Merged
tig merged 12 commits intodevelopfrom
fix/5097-FileDialog
Apr 28, 2026
Merged

More FileDialog tweaks#5102
tig merged 12 commits intodevelopfrom
fix/5097-FileDialog

Conversation

@tig
Copy link
Copy Markdown
Collaborator

@tig tig commented Apr 28, 2026

These are some fixes from code review comments that I forgot to push with #5090 .

tig and others added 10 commits April 27, 2026 09:08
- Moved AllowedTypeAny and IAllowedType to separate files
- Enhanced Notepad open dialog filters and options
- Replaced Enumerable.Empty<T>() with [] literals
- Changed CancelButton to CancelButtonIndex (int)
- Moved FileDialog UI/filter setup to EndInit
- Simplified FileDialogState and FileDialogTableSource
- Updated OpenDialog/SaveDialog to use CancelButtonIndex
- Applied code style and expression-bodied member improvements
Eliminates tracking and usage of _minimumSubViewsSize. Dialog sizing now only considers viewport, title, and button sizes. OnSubViewAdded override and related calculations are removed for simplification.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Expanded XML docs for Dialog/Dialog<TResult> to clarify layout, sizing, and scrollbar limitations. Added filedialog-state-refactor.md detailing planned FileDialogState refactoring, performance fixes, dead code removal, and new test requirements. Cleaned up redundant remarks in Dialog<TResult> constructor.
Added a protected FileDialogState constructor to support custom child population, updated SearchState to use it, and prevented redundant enumeration. Improved FilepathSuggestionGenerator by fixing nullability, filtering, and type issues for safer and clearer suggestion logic. Also ensured Path is set in all FileDialogState constructors.
@tig tig requested review from BDisp and tznind April 28, 2026 19:15
tig added 2 commits April 28, 2026 13:44
Announce v2.0 release, clarify v1 maintenance status, and rewrite README and docs to highlight v2 features, installation, and migration. Remove outdated v1/alpha references and improve navigation and quick start sections.
Copy link
Copy Markdown
Collaborator

@BDisp BDisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worthwhile to correct those warning on line R36 in the FileDialog.cs file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants