blob: 4780ee238208099fb15635f2fe94503b6d7e1906 (
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
27
|
<?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.Bz28556">
<ContentPage.Resources>
<ResourceDictionary>
<Style TargetType="Entry">
<Setter Property="TextColor" Value="Yellow" />
<Setter Property="BackgroundColor" Value="Green" />
<Style.Triggers>
<Trigger TargetType="Entry" Property="IsEnabled" Value="False">
<Setter Property="TextColor" Value="Red" />
<Setter Property="BackgroundColor" Value="Purple" />
</Trigger>
<!-- <Trigger TargetType="Entry" Property="IsEnabled" Value="True">
<Setter Property="TextColor" Value="Yellow" />
<Setter Property="BackgroundColor" Value="Green" />
</Trigger>-->
</Style.Triggers>
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<StackLayout>
<Entry x:Name="entry" Text="Sample Text" />
<Entry x:Name="disableEntry" Text="Sample Text" IsEnabled="false" />
</StackLayout>
</ContentPage>
|