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

Editor vertical text alignment not working after toggling IsVisible #25973

Open
King-Taz opened this issue Nov 20, 2024 · 3 comments
Open

Editor vertical text alignment not working after toggling IsVisible #25973

King-Taz opened this issue Nov 20, 2024 · 3 comments
Labels
area-controls-editor Editor p/2 Work that is important, but is currently not scheduled for release platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@King-Taz
Copy link

Description

After toggling IsVisible property of Editor control, the control's vertical text alignment is destroyed (goes to default setting Start). More importantly, I cannot set vertical text alignment in code behind. This appears to be a bug since horizontal text alignment is preserved as is the ability to programmatically change it.

Steps to Reproduce

Create a group of Editor controls in XAML and trigger the code behind to hide/show the control and set alignment is below. I expected the vertical alignment to be unaffected by visibility, like the horizontal alignment.

        // Show/Hide column matrix B entries
        for (int i = 1; i <= 6; i++)
        {
            string controlName = $"M1_B_{i}1";
            if (FindByName(controlName) is View control) // Assuming the control is of type View or a derived type
            {
                control.IsVisible = (i <= order);
                //M1_B_51.HorizontalTextAlignment = TextAlignment.Start;
                //M1_B_51.VerticalTextAlignment = TextAlignment.End;
            }
        }

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

All

Did you find any workaround?

It's not a work around, but one can just accept the default "Start" vertical alignment, which destroys the aesthetics of my app.

Relevant log output

@King-Taz King-Taz added the t/bug Something isn't working label Nov 20, 2024
@King-Taz King-Taz reopened this Nov 20, 2024
@Ying-6
Copy link

Ying-6 commented Nov 20, 2024

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

@King-Taz
Copy link
Author

I uploaded this and sent you an invite, let me know if you have questions

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Nov 21, 2024
@Ying-6
Copy link

Ying-6 commented Nov 21, 2024

This issue has been verified using Visual Studio 17.13 Preview 1(9.0.10 & 9.0.0 & 8.0.100). Can repro this issue on Windows platform.
Image

@PureWeen PureWeen added this to the Backlog milestone Nov 21, 2024
@PureWeen PureWeen added the p/2 Work that is important, but is currently not scheduled for release label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-editor Editor p/2 Work that is important, but is currently not scheduled for release platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants