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.

[Bug] Button CharacterSpacing is not working

See original GitHub issue

Describe the bug The CharacterSpacing property does nothing for a Button. I was actually trying to fix a bug in Xamarin.Forms. After not being able to fix the issue, I created a new UWP app and reproduced the issue.

Steps to reproduce the bug Repro: uwptemp.zip

1.) create a blank uwp app 2.) add the following content to the content of the MainPage:

    <StackPanel Orientation="Vertical">
        <Button Content="Character spacing 8" CharacterSpacing="800"/>
        <TextBlock Text="Character spacing 8" CharacterSpacing="800"/>
        <TextBox Text="Character spacing 8" CharacterSpacing="800"/>
    </StackPanel>

3.) Run the app

Expected behavior The text of the button should also have a character spacing as the textbox and textblock does.

Screenshots

image

Version Info

NuGet package version: Microsoft.NETCore.UniversalWindowsPlatform 6.2.10

Windows app type:

UWP Win32
Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041)
November 2019 Update (18363) Yes
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop
Xbox
Surface Hub
IoT

Additional context This is the link of the reported xamarin forms issue: https://github.com/xamarin/Xamarin.Forms/issues/9291

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mdtaukcommented, Oct 27, 2020

That is interesting. I just wonder why it works for the textbox as there is clearly no binding for CharacterSpacing visible in the resources files.

That could just be inheritance, that is implicit. Without access to the Button or TextBox code, its hard to know for sure. Guess that will be when the WinUI 3.0 code drops.

1reaction
chingucodingcommented, Oct 26, 2020

If you request a new feature or API, yes it has to be approved. In this case however, this is a big which does not need API review and approval, so it is good to go.

You can ask the WinUI team to assign the issue to you, though I think it is clear for others that you want to work on this issue, so I think that it’s not needed to assign it to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Button.CharacterSpacing Xamarin.Forms
Show activity on this post. CharacterSpacing is a double property <Button Text="Click me" Clicked="btnOpen_Clicked" CharacterSpacing="10" .
Read more >
Character spacing issue in PowerPoint (Microsoft Office ...
I am designing a poster in PowerPoint, and the text boxes seem to change their character spacing at random. The two character spacing...
Read more >
Fix character spacing problems by switching kerning ...
In this video, learn how to switch between the two. ... Fix character spacing problems by switching kerning methods - InDesign Tutorial.
Read more >
111733 – Sidebar character spacing popup has wrong selection
Description: Clicking on sidebar character spacing button a popup menu is ... that the bug has been fixed, or the details of the...
Read more >
[SOLVED] Outlook Character Spacing off
Solution: Look on the RIbbon for a button called Immersive Reader, toggle it off.
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