-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue3979.xaml
26 lines (26 loc) · 1.12 KB
/
Issue3979.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8" ?>
<controls:TestContentPage
xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Controls.Issues.Issue3979">
<ContentPage.Content>
<StackLayout>
<Label LineBreakMode="WordWrap">Clicking the button sets one of the spans in the following label to Device.Styles.BodyStyle. This test succeeds if clicking the button does not cause exception.</Label>
<Label>
<Label.FormattedText>
<FormattedString>
<Span Text="Red Bold, " TextColor="Red" FontAttributes="Bold" />
<Span Text="default, " x:Name="TargetSpan">
<Span.GestureRecognizers>
<TapGestureRecognizer Command="{Binding TapCommand}" />
</Span.GestureRecognizers>
</Span>
<Span Text="italic small." FontAttributes="Italic" FontSize="Small" />
</FormattedString>
</Label.FormattedText>
</Label>
<Button Clicked="Button_OnClicked" Text="Set style" />
</StackLayout>
</ContentPage.Content>
</controls:TestContentPage>