Commit 249422f
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
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
0 commit comments