-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
LabelHtml.xaml
34 lines (34 loc) · 1.16 KB
/
LabelHtml.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
27
28
29
30
31
32
33
34
<?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.Xaml.UnitTests.LabelHtml">
<StackLayout>
<Label x:Name="label0"
TextType="Html">
<h1>Hello World!</h1><br/>SecondLine
</Label>
<Label x:Name="label1"
TextType="Html"
Text="<h1>Hello World!</h1><br/>SecondLine" />
<Label x:Name="label2"
TextType="Html">
<![CDATA[
<h1>Hello World!</h1><br/>SecondLine
]]>
</Label>
<Label x:Name="label3"
TextType="Html">
<x:String>
<![CDATA[
<h1>Hello World!</h1><br/>SecondLine
]]>
</x:String>
</Label>
<Label x:Name="label4"
TextType="Html">
<Label.Text>
<![CDATA[
<h1>Hello World!</h1><br/>SecondLine
]]>
</Label.Text>
</Label>
</StackLayout>
</ContentPage>