Skip to content

Fix placeholder text truncation for OneWay and TwoWay Binding#1929

Merged
ayushjai30 merged 1 commit intomainfrom
Bug_58165989_Binding_Placeholder_Text_Truncation_Issue
Jul 22, 2025
Merged

Fix placeholder text truncation for OneWay and TwoWay Binding#1929
ayushjai30 merged 1 commit intomainfrom
Bug_58165989_Binding_Placeholder_Text_Truncation_Issue

Conversation

@sabareesanms
Copy link
Contributor

@sabareesanms sabareesanms commented Jul 22, 2025

Bug: [WinUI 3 Gallery: Fundamentals -> Binding]: On applying text scaling 200%, the placeholder text of OneWay Binding and TwoWay Binding are getting truncated.

Description:
The placeholder text of the textbox in the binding page is getting truncated when the text scaling is set to 200%.

Changes:
Files changed
WinUIGallery/Samples/ControlPages/Fundamentals/BindingPage.xaml

Code changes:
Width="200" is changed to MinWidth="380"

 <TextBox
     x:Name="SourceTextBoxOneWay"
     MinWidth="380"
     HorizontalAlignment="Left"
     PlaceholderText="Enter text here" />

Test:
Tested in the gallery app. Attached the screenshots for reference.

Screenshots:

Normal State:

image

Text Scaling Set to 200%:

Before fix:
image

After fix:
image

… content and increased the minWidth to 380 to have same size in both text scaled and non text scaled versions.
@sabareesanms
Copy link
Contributor Author

/azp run

@ayushjai30 ayushjai30 merged commit 3f714c2 into main Jul 22, 2025
2 checks passed
@ayushjai30 ayushjai30 deleted the Bug_58165989_Binding_Placeholder_Text_Truncation_Issue branch July 22, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants