//more and less button Expand //public void onExpandBtnClicked(object Sender, EventArgs e) //{ // var buttonClickHandler = (Xamarin.Forms.Button)Sender; // // access Parent Layout for Button // StackLayout ParentStackLayout = (StackLayout)buttonClickHandler.Parent; // // access first Label "name" // Label nameLabel = (Label)ParentStackLayout.Children[0]; // if (buttonClickHandler.Text == "more") // { // nameLabel.MaxLines = 20; // buttonClickHandler.Text = "less"; // } // else // { // buttonClickHandler.Text = "more"; // nameLabel.MaxLines = 3; // } //} protected override bool OnBackButtonPressed() { vm.Back(); return(true); }