Skip to content

Add API documentation to Controls.Foldable and enable CS1591#33667

Merged
jfversluis merged 1 commit intomainfrom
docs/foldable-api-docs-complete
Jan 22, 2026
Merged

Add API documentation to Controls.Foldable and enable CS1591#33667
jfversluis merged 1 commit intomainfrom
docs/foldable-api-docs-complete

Conversation

@jfversluis
Copy link
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description

This PR adds API documentation to the Microsoft.Maui.Controls.Foldable project and enables CS1591 warnings-as-errors to prevent future documentation gaps.

Changes

Documentation added:

  • DualScreenInfo constructor
  • HostBuilderExtensions.UseFoldable method
  • TwoPaneView constructor
  • SpanModeStateTrigger constructor
  • WindowSpanModeStateTrigger constructor

CS1591 enforcement:

  • Enabled WarningsAsErrors: CS1591 in Controls.Foldable.csproj

Testing

  • dotnet build src/Controls/Foldable/src/Controls.Foldable.csproj -c Release - passes with CS1591 enforced

- Add XML documentation to DualScreenInfo constructor
- Add XML documentation to HostBuilderExtensions.UseFoldable
- Add XML documentation to TwoPaneView constructor
- Add XML documentation to SpanModeStateTrigger constructor
- Add XML documentation to WindowSpanModeStateTrigger constructor
- Enable CS1591 warnings-as-errors in Controls.Foldable.csproj
Copilot AI review requested due to automatic review settings January 22, 2026 10:13
@jfversluis jfversluis added the area-docs Conceptual docs, API docs, Samples label Jan 22, 2026
@jfversluis jfversluis added this to the .NET 10.0 SR4 milestone Jan 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive API documentation to the Microsoft.Maui.Controls.Foldable project and enables CS1591 compiler warnings as errors to ensure all public APIs remain documented going forward.

Changes:

  • Added XML documentation to all previously undocumented public constructors (DualScreenInfo, TwoPaneView, SpanModeStateTrigger, WindowSpanModeStateTrigger)
  • Added class-level and method-level documentation to HostBuilderExtensions including proper parameter and return value tags
  • Enabled CS1591 as a warning-as-error in Controls.Foldable.csproj to enforce documentation requirements

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Controls/Foldable/src/DualScreenInfo.cs Added constructor documentation explaining that it monitors the specified element's position across screens
src/Controls/Foldable/src/HostBuilderExtensions.cs Added class summary and complete method documentation with parameter and return value tags for UseFoldable extension method
src/Controls/Foldable/src/TwoPaneView.cs Added standard constructor documentation for the public parameterless constructor
src/Controls/Foldable/src/SpanModeStateTrigger.cs Added standard constructor documentation for the public parameterless constructor
src/Controls/Foldable/src/WindowSpanModeStateTrigger.cs Added standard constructor documentation for the public parameterless constructor
src/Controls/Foldable/src/Controls.Foldable.csproj Changed CS1591 from NoWarn to WarningsAsErrors to enforce documentation requirements

@jfversluis jfversluis merged commit d499a67 into main Jan 22, 2026
30 of 34 checks passed
@jfversluis jfversluis deleted the docs/foldable-api-docs-complete branch January 22, 2026 14:41
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-docs Conceptual docs, API docs, Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants