Expose IsMultiline property on Label components#64
Conversation
(cherry picked from commit b0711f4)
|
There was a problem hiding this comment.
Pull request overview
Exposes the underlying UI block’s multiline capability on Label so consumers can explicitly enable/disable multi-line rendering for static text labels.
Changes:
- Added
Label.IsMultilineproperty that forwards toBlockDefinition.IsMultiline.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| /// <summary> | ||
| /// Gets or sets a value indicating whether this label is multiline, meaning that it can display multiple lines of text. | ||
| /// </summary> | ||
| public bool IsMultiline | ||
| { | ||
| get | ||
| { | ||
| return BlockDefinition.IsMultiline; | ||
| } | ||
|
|
||
| set | ||
| { | ||
| BlockDefinition.IsMultiline = value; | ||
| } |
There was a problem hiding this comment.
IsMultiline is a new public API surface on Label, but there is no unit test verifying that setting/getting it correctly forwards to BlockDefinition.IsMultiline. Adding a small test (similar to other BlockDefinition-backed property tests in this repo) would help prevent regressions when the underlying UI block behavior changes.



No description provided.