-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue3228.xaml
63 lines (63 loc) · 2.57 KB
/
Issue3228.xaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8" ?>
<local:TestContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Controls.Issues.Issue3228"
xmlns:local="clr-namespace:Xamarin.Forms.Controls"
Title="[UWP] Default Search Directory for UWP Icons (Platform Specific)">
<ScrollView>
<StackLayout>
<Label
Text="Using the UWP Platform Specific to set the Default Search Directory using Image, Button and ImageButton. In all cases, you must see the image."
Margin="0, 12"/>
<!-- USING LABEL -->
<Label
Text="Image (Assets/coverassets1.jpg)"/>
<Image>
<Image.Source>
<OnPlatform x:TypeArguments="ImageSource">
<On Platform="iOS" Value="cover1.jpg"/>
<On Platform="Android" Value="cover1.jpg"/>
<On Platform="UWP" Value="Assets/coverassets1.jpg"/>
</OnPlatform>
</Image.Source>
</Image>
<Label
Text="Image (coverassets1.jpg)"/>
<Image
Source="coverassets1.jpg" />
<!-- USING BUTTON -->
<Label
Text="Button (Assets/coverassets1.jpg)"/>
<Button>
<Button.ImageSource>
<OnPlatform x:TypeArguments="ImageSource">
<On Platform="iOS" Value="cover1.jpg"/>
<On Platform="Android" Value="cover1.jpg"/>
<On Platform="UWP" Value="Assets/coverassets1.jpg"/>
</OnPlatform>
</Button.ImageSource>
</Button>
<Label
Text="Button (coverassets1.jpg)"/>
<Button
ImageSource="coverassets1.jpg" />
<!-- USING IMAGEBUTTON -->
<Label
Text="ImageButton (Assets/coverassets1.jpg)"/>
<ImageButton>
<ImageButton.Source>
<OnPlatform x:TypeArguments="ImageSource">
<On Platform="iOS" Value="cover1.jpg"/>
<On Platform="Android" Value="cover1.jpg"/>
<On Platform="UWP" Value="Assets/coverassets1.jpg"/>
</OnPlatform>
</ImageButton.Source>
</ImageButton>
<Label
Text="ImageButton (coverassets1.jpg)"/>
<ImageButton
Source="coverassets1.jpg" />
</StackLayout>
</ScrollView>
</local:TestContentPage>