blob: 81cf4aece81427dfe1e9318dd1ce75786a340f21 (
plain)
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"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Xaml.UnitTests.Bz41048">
<ContentPage.Resources>
<ResourceDictionary>
<!-- Standard Style -->
<Style x:Key="StandardLabelStyle" TargetType="Label">
<Setter Property="TextColor" Value="Red"/>
<Setter Property="LineBreakMode" Value="TailTruncation"/>
</Style>
<!-- Derived style with bold font -->
<Style x:Key="StandarBoldLabelStyle" TargetType="Label" BasedOn="{StaticResource StandardLabelStyle}">
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<!-- Use the StandardLabelStyle as implicit style for all labels -->
<Style TargetType="Label" BasedOn="{StaticResource StandardLabelStyle}"/>
</ResourceDictionary>
</ContentPage.Resources>
<Label x:Name="label0"
Style="{StaticResource StandarBoldLabelStyle}"
LineBreakMode="WordWrap" />
</ContentPage>
|