--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ x:Class="Xamarin.Forms.Controls.Issues.Issue5801">
+ <StackLayout Padding="50, 100">
+ <Label Text="When switch sets Label's FormattedText, text should have the strikethrough."/>
+ <Switch x:Name="_switch" />
+ <Label TextDecorations="Strikethrough">
+ <Label.Triggers>
+ <DataTrigger TargetType="Label"
+ Binding="{Binding IsToggled, Source={x:Reference _switch}}"
+ Value="True">
+ <Setter Property="FormattedText">
+ <FormattedString>
+ <Span Text="This is test text" />
+ </FormattedString>
+ </Setter>
+ </DataTrigger>
+ </Label.Triggers>
+ </Label>
+ </StackLayout>
+</ContentPage>
\ No newline at end of file
--- /dev/null
+using Xamarin.Forms.CustomAttributes;
+using Xamarin.Forms.Internals;
+
+namespace Xamarin.Forms.Controls.Issues
+{
+#if APP
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Github, 5801, "TextDecorations Strikethrough not called for FormattedText in iOS", PlatformAffected.iOS)]
+
+ public partial class Issue5801 : ContentPage
+ {
+ public Issue5801 ()
+ {
+ InitializeComponent ();
+ }
+ }
+#endif
+}
\ No newline at end of file
<DependentUpon>Issue5003.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
+ <Compile Include="$(MSBuildThisFileDirectory)Issue5801.xaml.cs">
+ <DependentUpon>Issue5801.xaml</DependentUpon>
+ <SubType>Code</SubType>
+ </Compile>
<Compile Include="$(MSBuildThisFileDirectory)Issue5695.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue5535.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue5949.cs" />
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
+ <EmbeddedResource Include="$(MSBuildThisFileDirectory)Issue5801.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)A11yTabIndex.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
else if (e.PropertyName == Label.TextDecorationsProperty.PropertyName)
UpdateTextDecorations();
else if (e.PropertyName == Label.FormattedTextProperty.PropertyName)
+ {
UpdateText();
+ UpdateTextDecorations();
+ }
else if (e.PropertyName == Label.LineBreakModeProperty.PropertyName)
UpdateLineBreakMode();
else if (e.PropertyName == VisualElement.FlowDirectionProperty.PropertyName)