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 } }; }
public ListPage () { _listScreen = new ListScreen (); Content = new StackLayout { Children = { new Label {Text = "Foo"}, _listScreen.View } }; }
public ListPage() { _listScreen = new ListScreen(); Content = new StackLayout { Children = { new Label { Text = "Foo" }, _listScreen.View } }; }