[NUI] Change for Size2D property to own internalSize2D which is cashed to prevent...
[platform/core/csapi/tizenfx.git] / test / NUITizenGallery / res / layout / LabelTest2Page.xaml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <b:View x:Class="NUITizenGallery.LabelTest2Page"
3   xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4   xmlns:b="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
5   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6   BackgroundColor="White"
7   PositionUsesPivotPoint="True" ParentOrigin="Center" PivotPoint="Center" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
8     
9     <View.XamlResources>
10         <ResourceDictionary>
11             <x:String x:Key="label2Text">
12                 &lt;color value='blue'&gt;This should be Blue&lt;/color&gt;
13             </x:String>
14             <x:String x:Key="label3Text">
15                 None&lt;font weight='bold' &gt;Bold&lt;/font&gt;&lt;font slant='italic' &gt;Italic&lt;/font&gt;&lt;font slant='italic' weight='bold' &gt;Both&lt;/font&gt;
16             </x:String>
17             <x:String x:Key="label6Text">
18                 &lt;color value='blue'&gt;&lt;font slant='italic' &gt;This should be Italic Blue on Red&lt;/font&gt;&lt;/color&gt;
19             </x:String>
20             <x:String x:Key="label8Text">
21                 &lt;Html&gt;this is HTML&lt;/Html&gt;
22             </x:String>
23         </ResourceDictionary>
24     </View.XamlResources>
25     
26     <View x:Name="mainView"
27           HeightResizePolicy="FillToParent"
28           WidthResizePolicy="FillToParent">
29
30         <View.Layout>
31             <LinearLayout LinearOrientation="Vertical" CellPadding="10,10"/>
32         </View.Layout>
33
34         <TextLabel Text="NormalTextLabel"/>
35
36         <TextLabel BackgroundColor="Red"
37                    EnableMarkup="True"
38                    Text="{StaticResource label2Text}"/>
39                                                         
40         <TextLabel EnableMarkup="True"
41                    Text="{StaticResource label3Text}"/>
42
43         <TextLabel Text="This should be Blue"
44                    BackgroundColor="Red"
45                    TextColor="Blue"/>
46
47         <TextLabel Text="This should be Red"
48                    TextColor="Red"/>
49
50         <TextLabel EnableMarkup="True"
51                    Text="{StaticResource label6Text}"
52                    BackgroundColor="Red"/>
53         
54
55         <TextLabel WidthSpecification="{Static LayoutParamPolicies.MatchParent}" 
56                    Text="This is reeeeeeeeeeeeeeeeeeeeealy looooooooooooooooooooooong and looooooooooooooooooong text"
57                    MultiLine="True"
58                    LineWrapMode="Character"/>
59
60         <TextLabel Text="{StaticResource label8Text}"/>
61         
62     </View>
63
64 </b:View>