private static void OnRowHeightChanged(BindableObject bindable, object oldValue, object newValue) { MultiColumnGrid thisctrl = (MultiColumnGrid)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.InitGrid(); } }
private static void OnItemsSourceChanged(BindableObject bindable, object oldValue, object newValue) { MultiColumnGrid thisctrl = (MultiColumnGrid)bindable; if (thisctrl != null && oldValue != newValue) { if (oldValue != null) { thisctrl.ItemsSource.CollectionChanged -= thisctrl.ItemsSource_CollectionChanged; } thisctrl.ItemsSource.CollectionChanged += thisctrl.ItemsSource_CollectionChanged; thisctrl.InitGrid(); } }