The "FormattedText" property, does not accept to apply custom styles, shows error when compiling.
You should apply the custom style applied.
Does not apply the style, and shows error when compiling.
Bug
I have solved it, removing styles, and specifying each property that contains my custom style.
Hi, I think the target type is wrong. Try with TargetType={x:Type Span}
It's right there in the error message you've underlined - your style target type is Label, but you are applying the style to a Span.
Change the target type to Span and remove the properties (HorizontalOptions and Margin) which don't exist on Span, and you will see your style applied.
Thank you for the correction!