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

Label Underline TextDecoration disappears after text change #4295

Closed
mknotzer opened this issue Nov 3, 2018 · 1 comment · Fixed by #4322

Comments

@mknotzer
Copy link

commented Nov 3, 2018

Description

Changed text gets drawn without the underline.
The work around is setting the decoration to none and to underline again.

Steps to Reproduce

<Label Text="Test" TextDecorations="Underline">
	<Label.GestureRecognizers>
		<TapGestureRecognizer Tapped="OnLabelClicked"/>
	</Label.GestureRecognizers>
</Label>
private void OnLabelClicked(object sender, EventArgs args)
{
	Label oLabel = (Label)sender;
	oLabel.Text = "Hello world";
	oLabel.TextDecorations = TextDecorations.None; // work around
	oLabel.TextDecorations = TextDecorations.Underline; // work around
}

Basic Information

Xamarin Forms 3.3.0.913540

@pauldipietro pauldipietro added this to New in Triage Nov 3, 2018

@pauldipietro

This comment has been minimized.

Copy link
Member

commented Nov 3, 2018

Appears to be occurring on iOS only

@pauldipietro pauldipietro moved this from New to Ready For Work in Triage Nov 3, 2018

@PureWeen PureWeen added this to In Progress in v3.6.0 Nov 6, 2018

Triage automation moved this from Ready For Work to Closed Nov 6, 2018

@PureWeen PureWeen moved this from In Progress to Done in v3.6.0 Nov 7, 2018

@PureWeen PureWeen removed this from Closed in Triage Nov 7, 2018

@samhouts samhouts removed this from Done in v3.6.0 Jan 3, 2019

@samhouts samhouts added this to In Progress in v3.5.0 Jan 11, 2019

@samhouts samhouts moved this from In Progress to Done in v3.5.0 Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
2 participants
You can’t perform that action at this time.