Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-bound Runs inside of a TextBlock are invisible (not rendered) half the time when their Text changes #16180

Open
fitdev opened this issue Jul 1, 2024 · 1 comment

Comments

@fitdev
Copy link
Contributor

fitdev commented Jul 1, 2024

Describe the bug

<TextBlock TextWrapping="Wrap" />
        <Run Text="{Binding Profile.FirstName}" />
        <Run Text="{Binding Description}" />
</TextBlock>

Given the XAML above, whenever either Profile or Description change, roughly half of the time the Runs become invisible (even though their IsVisible is true, and their Bounds are correct).

Everything works properly if instead TextBlock's Text itself gets updated via binding.

To Reproduce

From a viewmodel, repeatedly change the TextBlock-nested Runs' bound properties.

Expected behavior

The Runs should remain visible, i.e. rendered all the time.

Avalonia version

11.1 RC1

OS

Windows

Additional context

DotNet 8

@fitdev fitdev added the bug label Jul 1, 2024
@timunie
Copy link
Contributor

timunie commented Jul 1, 2024

please attach a full minimal sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants