question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UWP TextBox will Fill of the Page if they display text with too many combining marks

See original GitHub issue

Describe the bug

When we use the TextBox to display text with too many combining marks that the TextBox will fill with the Page and then it can fix after we focus the TextBox.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Create a TextBox in xaml
  2. Display text with too many combining marks

xaml:

    <Grid>
        <TextBox x:Name="Txt" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBox>
    </Grid>

code:

        public MainPage()
        {
            this.InitializeComponent();

            Txt.Text = new string('\u0483', 550);
        }

Then you can see the Screenshots after you run the application.

Expected behavior

At startup, the TextBox fills the entire page.

Screenshots

Version Info

NuGet package version:

Microsoft.NETCore.UniversalWindowsPlatform 6.1.9

Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2018 Update (17763) Yes
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Anniversary Update (14393)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

Additional context

See https://github.com/dotnet/wpf/issues/244

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chingucodingcommented, Aug 21, 2020

@StephenLPeters Since this is a TextBox internal issue, I think needs to wait until WinUI 3 arrives.

0reactions
github-actions[bot]commented, Jul 28, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UWP TextBox resize issue with a long text
I found an answer by setting the width of the TextBox programmatically. So when the app is resized TextBox also gets resized and...
Read more >
TextBox.MaxLength Property (Windows.UI.Xaml.Controls)
Gets or sets the value that specifies the maximum number of characters allowed for user input.
Read more >
Textbox string concatenation
I have a UI Text element that I am trying to populate with a script at run time. I am basically looking to...
Read more >
WebForms TextBox Overview - Demos - Telerik
Telerik RadTextBox is a highly customizable component for text inputs in ASP.NET applications. It shares the common properties of all RadInput controls, ...
Read more >
XFINIUM.PDF - PDF library for .NET, Windows Forms, ASP. ...
Additional characters are displayed when rendering PDF pages - fixed — Form fields cannot be added to document if form's /Fields array contains...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found