Esempio n. 1
0
 public VolunteeringMap(string s)
 {
     InitializeComponent();
     text = s.Split(',');
     voj  = VolunteeringManager.DefaultManager;
     displayAsync();
 }
Esempio n. 2
0
        public VolunteeringJob()
        {
            vojob  = VolunteeringManager.DefaultManager;
            parent = new StackLayout
            {
                Padding = new Thickness(10, 5, 10, 5)
            };

            Label header = new Label
            {
                Text = " We will help you find volunteering organizations near your postcode: ",
                HorizontalOptions = LayoutOptions.Center
            };

            post = new Entry
            {
                Placeholder = "postcode"
            };

            Button button = new Button
            {
                Text = " Search ",
                HorizontalOptions = LayoutOptions.Center,
                BackgroundColor   = Color.FromHex("#4DAFEA"),
                TextColor         = Color.White,
                BorderRadius      = 10,
                HeightRequest     = 35,
                WidthRequest      = 80
            };

            button.Clicked += Handle_ClickedAsync;
            indicator       = new ActivityIndicator
            {
                IsVisible            = false,
                Color                = Color.Black,
                IsEnabled            = true,
                IsRunning            = true,
                MinimumHeightRequest = 20
            };
            parent.Children.Add(header);
            parent.Children.Add(post);
            parent.Children.Add(button);
            parent.Children.Add(indicator);
            parent.BackgroundColor = Color.FromHex("#f8f6f6");
            scroll.Content         = parent;
            parent.Children.Add(inner);
            Content = scroll;
        }