Exemplo n.º 1
0
        public ListPage()
        {
            _listScreen = new ListScreen();
            var clearItemsButton = new Button {
                Text = "Clear items"
            };

            clearItemsButton.Clicked += delegate
            {
                _listScreen.View.ItemsSource = new List <int>();
            };
            var resetItemsSourceButton = new Button {
                Text = "Set ItemsSource = null"
            };

            resetItemsSourceButton.Clicked += delegate
            {
                _listScreen.View.ItemsSource = null;
            };
            Content = new StackLayout {
                Children =
                {
                    new Label {
                        Text = "Foo"
                    },
                    clearItemsButton,
                    resetItemsSourceButton,
                    _listScreen.View
                }
            };
        }
Exemplo n.º 2
0
		public ListPage ()
		{
			_listScreen = new ListScreen ();
			Content = new StackLayout {
				Children = {
					new Label {Text = "Foo"},
					_listScreen.View
				}
			};
		}
Exemplo n.º 3
0
 public ListPage()
 {
     _listScreen = new ListScreen();
     Content     = new StackLayout {
         Children =
         {
             new Label {
                 Text = "Foo"
             },
             _listScreen.View
         }
     };
 }