Skip to content

Add API documentation to Maps and fix TimeChangedEventArgs placeholders#33666

Merged
jfversluis merged 2 commits intomainfrom
docs/maps-api-docs-complete
Jan 22, 2026
Merged

Add API documentation to Maps and fix TimeChangedEventArgs placeholders#33666
jfversluis merged 2 commits intomainfrom
docs/maps-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 complete XML documentation to the Microsoft.Maui.Maps project and fixes documentation placeholders in Controls.Core.

Changes

Core/maps documentation added:

  • Distance struct - constructor, properties, factory methods, operators
  • MapSpan class - constructor, properties, methods
  • GeographyUtils class - extension methods
  • IGeoPathMapElement, IMapPin interfaces - previously undocumented members
  • IMapHandler, IMapElementHandler, IMapPinHandler interfaces
  • MapHandler, MapElementHandler, MapPinHandler handler classes
  • MapElementHandlerUpdate record

CS1591 enforcement:

  • Enabled WarningsAsErrors: CS1591 in Maps.csproj to prevent future documentation gaps

Controls.Core fix:

  • Fixed TimeChangedEventArgs - removed "To be added." placeholder documentation

Testing

  • dotnet build src/Core/maps/src/Maps.csproj -c Release - passes with CS1591 enforced
  • dotnet build src/Controls/Maps/src/Controls.Maps.csproj -c Release - passes
  • dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release - passes

- Add complete XML documentation to Microsoft.Maui.Maps (Core) public API
- Document Distance, MapSpan, GeographyUtils, and all interfaces
- Document MapHandler, MapElementHandler, MapPinHandler and their interfaces
- Enable CS1591 warnings-as-errors in Maps.csproj to prevent future gaps
- Fix TimeChangedEventArgs docs (remove 'To be added.' placeholders)
Copilot AI review requested due to automatic review settings January 22, 2026 10:07
@jfversluis jfversluis added the area-docs Conceptual docs, API docs, Samples label 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 XML documentation to the Microsoft.Maui.Maps project and fixes placeholder documentation in Controls.Core. The primary goal is to eliminate undocumented public APIs and enforce documentation standards going forward.

Changes:

  • Adds complete XML documentation to core Maps types (Distance, MapSpan, GeographyUtils)
  • Documents Maps handler classes and interfaces (MapHandler, MapElementHandler, MapPinHandler and their interfaces)
  • Documents map element types (IGeoPathMapElement, IMapPin)
  • Enables CS1591 as error in Maps.csproj to prevent future documentation gaps
  • Replaces "To be added." placeholders in TimeChangedEventArgs with meaningful documentation

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Core/maps/src/Maps.csproj Removes CS1591 from NoWarn and adds it to WarningsAsErrors to enforce documentation
src/Core/maps/src/Primitives/Distance.cs Adds documentation for struct, constructor, properties, factory methods, and operators
src/Core/maps/src/Primitives/MapSpan.cs Adds documentation for class, constructor, properties, and methods
src/Core/maps/src/Primitives/GeographyUtils.cs Adds documentation for utility extension methods
src/Core/maps/src/Core/IGeoPathMapElement.cs Adds interface documentation
src/Core/maps/src/Core/IMapPin.cs Adds documentation for previously undocumented members
src/Core/maps/src/Handlers/Map/IMapHandler.cs Adds interface documentation with inheritdoc tags
src/Core/maps/src/Handlers/Map/MapHandler.cs Adds handler class documentation
src/Core/maps/src/Handlers/MapElement/IMapElementHandler.cs Adds interface documentation with inheritdoc tags
src/Core/maps/src/Handlers/MapElement/MapElementHandler.cs Adds handler class documentation
src/Core/maps/src/Handlers/MapElement/MapElementHandlerUpdate.cs Adds record documentation with parameter descriptions
src/Core/maps/src/Handlers/MapPin/IMapPinHandler.cs Adds interface documentation with inheritdoc tags
src/Core/maps/src/Handlers/MapPin/MapPinHandler.cs Adds handler class documentation
src/Controls/src/Core/TimeChangedEventArgs.cs Removes "To be added." placeholders and improves documentation clarity

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jfversluis jfversluis added this to the .NET 10.0 SR4 milestone Jan 22, 2026
@jfversluis jfversluis merged commit 9467441 into main Jan 22, 2026
25 of 28 checks passed
@jfversluis jfversluis deleted the docs/maps-api-docs-complete branch January 22, 2026 14:38
@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