private void Pull_SizeChanged(object sender, EventArgs e) { pull.WidthRequest = pull.Bounds.Width; pull.HeightRequest = pull.Bounds.Height + 10; page = new Subview(DataSource[0], new Size(pull.WidthRequest, pull.HeightRequest), DataSource); pull.PullableContent = page.Content; }
protected override void OnSizeAllocated(double width, double height) { if (Device.OS == TargetPlatform.iOS) { height -= 100; } page = new Subview(DataSource[0], new Size(width, height + 10), DataSource); pull.PullableContent = page.Content; this.ContentView = pull; base.OnSizeAllocated(width, height); }