Skip to content

Commit af1d90f

Browse files
author
vakrilov
committed
Snippet added
1 parent 9113faa commit af1d90f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/tests/ui/image/image-tests.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ import ImageModule = require("ui/image");
99
// Binding the image source property to a view-model property.
1010
//```XML
1111
// <Page>
12-
// {%raw%}<Image src="{{ thumbnailImageUrl }}" />{%endraw%}
12+
// <StackLayout>
13+
// <!--Bind the image source property to view-model property -->
14+
// {%raw%}<Image src="{{ thumbnailImageUrl }}" />{%endraw%}
15+
// <!--Load form image from application -->
16+
// <Image source="~/app/logo.png" stretch ="none" / >
17+
// <!--Load form image resource -->
18+
// <Image source="res://app/logo.png" stretch ="none" / >
19+
// <!--Load form image URL-->
20+
// <Image source="http://www.google.com/images/errors/logo_sm_2.png" stretch ="none" />
21+
// </StackLayout>
1322
// </Page>
1423
//```
1524

0 commit comments

Comments
 (0)