blob: df2736a8647eb962adabba123536b3a036470614 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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.Bz37524">
<StackLayout>
<Entry x:Name="TheEntry"
Text="This simulates an error"
TextColor="Red"/>
<Button x:Name="TheButton"
Text="Should be disabled">
<Button.Triggers>
<MultiTrigger TargetType="Button">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding Source={x:Reference TheEntry}, Path=TextColor}"
Value="Red" />
</MultiTrigger.Conditions>
<Setter Property="IsEnabled" Value="False" />
</MultiTrigger>
</Button.Triggers>
</Button>
</StackLayout>
</ContentPage>
|