summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/XReference.xaml
blob: f09af13ee524e5f1b4c8cbc170eeef57211ed994 (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
28
29
30
31
32
33
34
35
36
37
<?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.XReference">
	<ContentPage.Resources>
		<ResourceDictionary>
			<Image x:Name="image" x:Key="imageKey"/>
		</ResourceDictionary>
	</ContentPage.Resources>
	<StackLayout>
		<ContentView x:Name="imageView" Content="{x:Reference image}"/>
		<Button
			x:Name="aButton"
			Text="My Button"
			Command="{Binding ButtonClickCommand}"
			CommandParameter="{x:Reference aButton}"/>
		<StackLayout>
			<Label x:Name="label0" Text="foo" BindingContext="{x:Reference label1}"/>
			<Label x:Name="label1" Text="bar" BindingContext="{x:Reference label0}"/>
			<Entry x:Name="entry" Text="{Binding Text, Source={x:Reference label0}}" Placeholder="{Binding Text, Source={x:Reference label1}}"/>
		</StackLayout>

<!--		<ListView x:Name="listView">
			<ListView.ItemTemplate>
				<DataTemplate>
					<ViewCell>
						<StackLayout>
							<Label x:Name="foo" BindingContext="{x:Reference bar}"/>
							<Label x:Name="bar" BindingContext="{x:Reference foo}"/>
						</StackLayout>
					</ViewCell>
				</DataTemplate>
			</ListView.ItemTemplate>
		</ListView>-->
	</StackLayout>
</ContentPage>