XLabs Xamarin Forms Labs – Label does not show strikethrough on multi-line in iOS



If you are trying to use strike through property of XLabs Xamarin-Forms-Labs , you may not see the strike through work on labels having multiline (wrapped text). This is a bug.

To fix it, add the following line after setting this.Control.AttributedText = new NSMutableAttributedString in the file ExtendedLabelRendered.cs

 ((NSMutableAttributedString)this.Control.AttributedText).AddAttribute (
                UIStringAttributeKey.BaselineOffset, new NSNumber(0) , new NSRange (0, view.Text.Length));

Thanks.



One thought on “XLabs Xamarin Forms Labs – Label does not show strikethrough on multi-line in iOS”

Leave a Reply

Your email address will not be published. Required fields are marked *