void icons_EntryUpdated(object sender, LruCacheBackground <Action, Icon> .EntryUpdatedEventArgs arg) { if (arg.key == this) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("Icon")); } } }
static Action() { icons = new LruCacheBackground <Action, Icon>(1024); icons.ProvideValue = new LruCache <Action, Icon> .ProvideValue(x => x.CommandObject.GetIcon()); }
void IconCache_EntryUpdated(object sender, LruCacheBackground <Action, Icon> .EntryUpdatedEventArgs arg) { this.BeginInvoke((MethodInvoker) delegate { itemView.BuildList(); }); }