blob: cedfbc8370cedb3b5d603e197fba3391b3a35a22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?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.Issue2578">
<ContentPage.Resources>
<ResourceDictionary>
<Style x:Key="labelStyle" TargetType="Label">
<Style.Triggers>
<Trigger Property="Text" TargetType="Label" Value="Foo">
<Setter Property="BackgroundColor" Value="Red" />
</Trigger>
<Trigger Property="Font" TargetType="Label" Value="Small">
<Setter Property="TextColor" Value="Olive" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<Label x:Name="label" Font="Small" Style="{StaticResource labelStyle}" />
</ContentPage>
|