Add default value documentation for Label.LineBreakMode property#33490
Merged
Add default value documentation for Label.LineBreakMode property#33490
Conversation
- Updated XML documentation to indicate LineBreakMode defaults to WordWrap - Follows established documentation patterns in the codebase - Build verified successfully with no errors or warnings Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Specify default value for LineBreakMode in API docs
Add default value documentation for Label.LineBreakMode property
Jan 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds default value documentation to the Label.LineBreakMode property to align the XML API documentation with the documentation site, which already specifies WordWrap as the default value.
Changes:
- Updated the XML documentation comment for the
LineBreakModeproperty to include the default value (LineBreakMode.WordWrap)
rmarinho
approved these changes
Jan 13, 2026
kubaflo
pushed a commit
to kubaflo/maui
that referenced
this pull request
Jan 16, 2026
…net#33490) The XML API documentation for `Label.LineBreakMode` was missing the default value, creating inconsistency with the [documentation site](dotnet/docs-maui#3168) which now correctly specifies `WordWrap` as the default. ### Changes - Added default value documentation to `LineBreakMode` property in `Label.cs` - Follows existing documentation pattern used for other bindable properties (e.g., `Button.CommandParameter`, `Border.SafeAreaEdges`) ```csharp /// <summary> /// Gets or sets the LineBreakMode for the Label. /// The default value is <see cref="LineBreakMode.WordWrap"/>. This is a bindable property. /// </summary> public LineBreakMode LineBreakMode ``` The default value `LineBreakMode.WordWrap` is confirmed in the `BindableProperty.Create` definition at line 104. <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > For LineBreakMode in src/Controls/src/Core/Label/Label.cs can you specify the default value on the API docs as also indicated here: dotnet/docs-maui#3168 </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The XML API documentation for
Label.LineBreakModewas missing the default value, creating inconsistency with the documentation site which now correctly specifiesWordWrapas the default.Changes
LineBreakModeproperty inLabel.csButton.CommandParameter,Border.SafeAreaEdges)The default value
LineBreakMode.WordWrapis confirmed in theBindableProperty.Createdefinition at line 104.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.