Exemplo n.º 1
0
        public CollectionHistoryView()
        {
            _Navigation = Navigation;
            CustomButton _CancelBtn = new CustomButton();

            _CancelBtn.Text         = "Cancel";
            _CancelBtn.WidthRequest = 120;
            _CancelBtn.Clicked     += Cancel_Clicked;

            Content = new StackLayout
            {
                HorizontalOptions = LayoutOptions.FillAndExpand,
                VerticalOptions   = LayoutOptions.FillAndExpand,
                Orientation       = StackOrientation.Vertical,
                Children          =
                {
                    //Configuration.GetSeperator("LIST OF DONATION",15),
                    new ScrollView()
                    {
                        BackgroundColor = Xamarin.Forms.Color.FromHex("EBEBEB"),
                        HeightRequest   = 870,                      //495,
                        Content         = ListTemplate(Dustbins.GetAllCreditTransaction())
                    },
                    new StackLayout {
                        Margin            = new Thickness(0, 15),
                        HorizontalOptions = LayoutOptions.Center,
                        Orientation       = StackOrientation.Horizontal,
                        BackgroundColor   = Configuration.ThemeColor,
                        Children          =
                        {
                            //_RegisterBtn,
                            _CancelBtn
                        }
                    }
                }
            };
        }