static void OnPanePropertyChanged(BindableObject bindable, object oldValue, object newValue, int paneIndex) { TwoPaneView twoPaneView = (TwoPaneView)bindable; var newView = (View)newValue; if (paneIndex == 0) { twoPaneView._content1.Content = newView; } else { twoPaneView._content2.Content = newView; } twoPaneView.UpdateMode(); }