Пример #1
0
        public Issue13437()
        {
#if APP
            InitializeComponent();

            ButtonOne.Text    = "Set Vertical List";
            ButtonOne.Command = new Command(() =>
            {
                SetVerticalList();
            });

            ButtonTwo.Text    = "Set Horizontal List";
            ButtonTwo.Command = new Command(() =>
            {
                SetHorizontalList();
            });

            ButtonThree.Text    = "Set Grid 2 List";
            ButtonThree.Command = new Command(() =>
            {
                SetTwoGrid();
            });

            ButtonFour.Text    = "Set Grid 3 List";
            ButtonFour.Command = new Command(() =>
            {
                SetThreeGrid();
            });

            var collection = new ObservableCollection <Issue13437Model>();

            for (int i = 0; i < 42; i++)
            {
                collection.Add(new Issue13437Model {
                    Text = "Label " + i.ToString()
                });
            }

            Collection.ItemsSource = collection;

            BindingContext = new ViewModel10482();
#endif
        }
Пример #2
0
        public Issue10482()
        {
            InitializeComponent();

            BindingContext = new ViewModel10482();
        }