Skip to content

Commit 249422f

Browse files
Copilotjfversluis
andauthored
Add default value documentation for Label.LineBreakMode property (#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>
1 parent 58f88af commit 249422f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Controls/src/Core/Label/Label.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ public TextAlignment HorizontalTextAlignment
148148
set { SetValue(TextAlignmentElement.HorizontalTextAlignmentProperty, value); }
149149
}
150150

151-
/// <summary>Gets or sets the LineBreakMode for the Label. This is a bindable property.</summary>
151+
/// <summary>
152+
/// Gets or sets the LineBreakMode for the Label.
153+
/// The default value is <see cref="LineBreakMode.WordWrap"/>. This is a bindable property.
154+
/// </summary>
152155
public LineBreakMode LineBreakMode
153156
{
154157
get { return (LineBreakMode)GetValue(LineBreakModeProperty); }

0 commit comments

Comments
 (0)