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

TextToolbar's Underline button always pressed #4915

Open
1 of 14 tasks
wesol1 opened this issue Aug 1, 2023 · 15 comments
Open
1 of 14 tasks

TextToolbar's Underline button always pressed #4915

wesol1 opened this issue Aug 1, 2023 · 15 comments
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior needs attention 👋 needs triage 🔍

Comments

@wesol1
Copy link

wesol1 commented Aug 1, 2023

Describe the bug

TextToolbar's Underline button is always pressed when we select multilines with couple of underline characters.

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

Add couple of lines in RichEditBox and underline one of them.
Then select all, Underline button is pressed (should not)

Expected behavior

Underline button should not be pressed if all lines are not underlined.

Screenshots

No response

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

No response

Nuget packages

No response

Additional context

To fix it, I had to create RichTextFormatterFixed class (together with RichTextButtonFixedActions as buttons are internal)
and in OnSelectionChanged method extend the condition for underline to:

if (Selected.CharacterFormat.Underline != UnderlineType.None &&
Selected.CharacterFormat.Underline != UnderlineType.Undefined)...

Help us help you

No.

@wesol1 wesol1 added the bug 🐛 An unexpected issue that highlights incorrect behavior label Aug 1, 2023
@ghost ghost added the needs triage 🔍 label Aug 1, 2023
@ghost
Copy link

ghost commented Aug 1, 2023

Hello wesol1, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@ghost ghost added the needs attention 👋 label Aug 16, 2023
@ghost
Copy link

ghost commented Aug 16, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

13 similar comments
@ghost
Copy link

ghost commented Aug 31, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Sep 15, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Sep 30, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Oct 15, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Oct 31, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Nov 15, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Nov 30, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Dec 15, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Dec 30, 2023

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Jan 14, 2024

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Jan 29, 2024

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Feb 13, 2024

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost
Copy link

ghost commented Feb 28, 2024

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior needs attention 👋 needs triage 🔍
Projects
None yet
Development

No branches or pull requests

1 participant