public PerformanceTest3Page()
        {
            InitializeComponent();

            //Application Linear Layout
            LinearLayout layout = new LinearLayout();

            layout.LinearOrientation = LinearLayout.Orientation.Vertical;
            layout.LinearAlignment   = LinearLayout.Alignment.Center;
            layout.Padding           = new Extents(5, 5, 5, 5);
            layout.CellPadding       = new Size2D(5, 5);
            this.Layout = layout;

            LinearLayout hLayout = new LinearLayout();

            hLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;
            hLayout.LinearAlignment   = LinearLayout.Alignment.Center;
            hLayout.Padding           = new Extents(5, 5, 5, 5);
            hLayout.CellPadding       = new Size2D(5, 5);
            ButtonBox.Layout          = hLayout;


            ScrollBegin.Clicked  += OnScrollBeginClicked;
            ScrollMiddle.Clicked += OnScrollMiddleClicked;
            ScrollEnd.Clicked    += OnScrollEndClicked;

            //Create List for Labels
            LabelsListView = new ScrollableBase();
            LabelsListView.BackgroundColor = Color.White;
            LabelsListView.Size2D          = new Size2D(700, 1200);

            //Set linead layout for scrollable widget
            LinearLayout scrollLayout = new LinearLayout();

            scrollLayout.LinearOrientation = LinearLayout.Orientation.Vertical;
            scrollLayout.LinearAlignment   = LinearLayout.Alignment.Center;
            scrollLayout.CellPadding       = new Size2D(5, 5);
            LabelsListView.Layout          = scrollLayout;
            LabelsListView.ScrollDuration  = ScrollTime;
            this.Add(LabelsListView);

            var items = new ListItemTitleView[TestItems];

            for (int i = 0; i < TestItems; i++)
            {
                items[i] = new ListItemTitleView("item: " + i.ToString());
                LabelsListView.Add(items[i]);
            }
        }
Exemple #2
0
        public PerformanceTest3Page()
        {
            InitializeComponent();

            ScrollBegin.Clicked  += OnScrollBeginClicked;
            ScrollMiddle.Clicked += OnScrollMiddleClicked;
            ScrollEnd.Clicked    += OnScrollEndClicked;

            var items = new ListItemTitleView[TestItems];

            for (int i = 0; i < TestItems; i++)
            {
                items[i] = new ListItemTitleView("item: " + i.ToString());
                LabelsListView.Add(items[i]);
            }
        }