Ejemplo n.º 1
0
        private void OnItemsSourceChanged(object sender, EventArgs e)
        {
            ItemsSourceChanged?.Invoke(this, e);

            if (loadedFlag)
            {
                OrderButtonColumns();
            }
        }
        /// <summary>
        /// On ItemsSource changed
        /// </summary>
        /// <param name="oldValue">Old Value</param>
        /// <param name="newValue">New Value</param>
        protected virtual void OnItemsSourceChanged(object oldValue, object newValue)
        {
            if (ice != null)
            {
                ice.CollectionChanged -= Ice_CollectionChanged;
            }
            ItemsSourceChanged?.Invoke(this, EventArgs.Empty);

            ice = ItemsSource as INotifyCollectionChanged;

            if (ice != null)
            {
                ice.CollectionChanged += Ice_CollectionChanged;
            }
        }
 private void MvxRecyclerViewItemsSourceBridgeOnItemsSourceCollectionChanged(object sender,
                                                                             NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs)
 {
     ItemsSourceChanged?.Invoke(sender, notifyCollectionChangedEventArgs);
 }
 /// <summary>
 /// On ItemsSource changed
 /// </summary>
 /// <param name="oldValue">Old Value</param>
 /// <param name="newValue">New Value</param>
 protected virtual void OnItemsSourceChanged(object oldValue, object newValue)
 {
     ItemsSourceChanged?.Invoke(this, EventArgs.Empty);
 }