-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMyPage.cs
40 lines (38 loc) · 1.04 KB
/
MyPage.cs
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
using Xamarin.Forms;
namespace XamarinDevDaysDemo
{
public class MyPage : ContentPage
{
public MyPage ()
{
var images = new [] {
new FileImageSource { File = "mickey.png" },
new FileImageSource { File = "goofy.gif" },
new FileImageSource { File = "pluto.jpg" }
};
Content = new StackLayout {
Children = {
new Label {
Text = "Hello Xamarin Dev Days!",
HorizontalOptions = LayoutOptions.Center,
TextColor = Color.Black
},
new ImageCarousel (images) {
HorizontalOptions = LayoutOptions.FillAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand
},
new Label {
Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in nisi nibh.",
HorizontalOptions = LayoutOptions.Center,
TextColor = Color.Black
}
},
Spacing = 30,
Padding = new Thickness (10, 30, 10, 20),
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.CenterAndExpand,
VerticalOptions = LayoutOptions.FillAndExpand
};
}
}
}