static void OnGroupDisplayBindingChanged(BindableObject bindable, BindingBase oldValue, BindingBase newValue) { var lv = (ListView)bindable; if (newValue != null && lv.GroupHeaderTemplate != null) { lv.GroupHeaderTemplate = null; Log.Warning("ListView", "GroupHeaderTemplate and GroupDisplayBinding can not be set at the same time, setting GroupHeaderTemplate to null"); } }