Bindable Span

ChaseFlorellChaseFlorell CAInsider, University mod
edited May 2017 in Xamarin.Forms Evolution


The Span class should have Bindable properties and the addition of a Style property.

API Changes

Make Span Inherit from BindableObject and support bindings on the properties. Also add a Style property so that Spans can be individually styled in the same way as a Label.


                <Span Text="My Label" Style="{StaticResource title-style}" />
                <Span Text="{Binding Info}" Style="{StaticResource text-style}" />
                <Span Text="{Binding Sum}" Style="{StaticResource number-style}" />

Intended Use Case

Bindable spans make for much simpler FormattedText. This is not the first time this has been requested.

Also nice to have the ability to nicely format labels as follows.


0 votes

Completed · Last Updated


Sign In or Register to comment.