Exemple #1
0
        private static void OnRowHeightChanged(BindableObject bindable, object oldValue, object newValue)
        {
            MultiColumnGrid thisctrl = (MultiColumnGrid)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.InitGrid();
            }
        }
Exemple #2
0
        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();
            }
        }