blob: 54a8b9a044333bb15efa3a4bd6fe34a0ef49ca1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?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.Bz28719">
<ListView x:Name="listView">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Image Grid.Row="0" Grid.Column="0">
<Image.Triggers>
<DataTrigger TargetType="Image" Binding="{Binding IsSelected}" Value="False">
<Setter Property="Source" Value="Add.png" />
</DataTrigger>
<DataTrigger TargetType="Image" Binding="{Binding IsSelected}" Value="True">
<Setter Property="Source" Value="Remove.png" />
</DataTrigger>
</Image.Triggers>
</Image>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage>
|