Correct the default value for Label.LineBreakMode property#3168
Conversation
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 6cfceb4: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit f26bb06: ✅ Validation status: passed
For more details, please refer to the build report. |
) 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>
…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>
Description of Change:
The default value of the
Label.LineBreakModeproperty has been updated from NoWrap to WordWrap to align with the actual MAUI behavior.Maui actual default value in source: LineBreakMode
Maui Documentation Link: LineBreakMode
Xamarin API Reference: LineBreakMode
Issues Fixed
Fixes #3167