Fix Color Picker format name truncation issue #44052
Open
+1
−1
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.
Summary of the Pull Request
Fixes #25063 - Long color format names are cut off in the Color Picker editor, causing names like "DECIMAL" to appear as "DECIMAI".
PR Checklist
Detailed Description of the Pull Request / Additional comments
The first column width in
ColorFormatControl.xamlwas set to a fixed 48 pixels, which is too narrow to display longer format names like:This caused the last character(s) to be clipped, making "DECIMAL" appear as "DECIMAI" as shown in the issue.
Solution
Increased the column width from 48px to 64px. This provides enough space to display all current format names while maintaining the existing layout proportions.
The
TextTrimming="CharacterEllipsis"is already set on theFormatNameTextBlock, so any custom format names that exceed the new width will be properly truncated with "..." instead of being cut off abruptly.Before
After
The format name "DECIMAL" should now display correctly without being cut off.