You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a label uses spans in the formatted string, it doesn't seem to register it as children on the element.
<LabelMaxLines="2"LineBreakMode="WordWrap"VerticalOptions="Center">
<Label.FormattedText>
<FormattedString>
<SpanText="Text One" />
<!--Add blank space between normal text and link text-->
<SpanText="" />
<SpanText="Text Two"TextDecorations="Underline">
<Span.GestureRecognizers>
<TapGestureRecognizerCommand="{Binding CommandHere}" />
</Span.GestureRecognizers>
</Span>
</FormattedString>
</Label.FormattedText>
</Label>
Therefore, the spans are not getting cleared in TearDownImpl.
Adding the following seems to work.
if(vte is Label label){if(label.FormattedText !=null){
TearDownImpl(label.FormattedText);}}
Happy to discuss further if required.
The text was updated successfully, but these errors were encountered:
If a label uses spans in the formatted string, it doesn't seem to register it as children on the element.
Therefore, the spans are not getting cleared in
TearDownImpl
.Adding the following seems to work.
Happy to discuss further if required.
The text was updated successfully, but these errors were encountered: