C# Class uguimvvm.ItemsControl

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: jbruening/ugui-mvvm

Protected Properties

Property Type Description
_items List

Protected Methods

Method Description
CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnItemAdded ( ItemInfo info ) : void

After an item is added to the controls

OnItemRemoved ( ItemInfo info ) : void

After an item is removed from controls

OnItemsSourceChanged ( ) : void

Fired after the controls have re-created, before the ItemsSourceChanged event is invoked

Private Methods

Method Description
AddItems ( IEnumerable newItems ) : void
Awake ( ) : void
OnDestroy ( ) : void
RemoveAt ( int idx ) : void
RemoveItems ( IEnumerable oldItems ) : void
ResetBindings ( IEnumerable oldvalue, IEnumerable newvalue ) : void
ResetCollection ( ) : void

Method Details

CollectionChanged() protected method

protected CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
sender object
e NotifyCollectionChangedEventArgs
return void

OnItemAdded() protected method

After an item is added to the controls
protected OnItemAdded ( ItemInfo info ) : void
info ItemInfo
return void

OnItemRemoved() protected method

After an item is removed from controls
protected OnItemRemoved ( ItemInfo info ) : void
info ItemInfo
return void

OnItemsSourceChanged() protected method

Fired after the controls have re-created, before the ItemsSourceChanged event is invoked
protected OnItemsSourceChanged ( ) : void
return void

Property Details

_items protected_oe property

protected List _items
return List