function HashMap() { var size = 0; var entry = new Object(); this.put = function (key, value) { entry[key] = value; size++; }; this.putAll = function (map) { if (typeof map == "object" && !map.sort) { for (var key in map) { this.put(key,…
/** * Created by Administrator on 2016/11/23. */ public class test { public static void main(String[] args){ List<model> list = new ArrayList<>(); for(int i=0;i<100;i++){ list.add(new model(1,"ss")); } HashMap<String,Object>…
引言 书接上回[WPF系列-数据邦定之DataTemplate],本篇介绍如何根据属性切换模板(DataTemplate) 切换模板的两种方式: 使用DataTemplateSelector来切换模板 使用DataTrigger来实现模板切换. 使用Style来是实现模板切换 A DataTemplateSelector does not respond to PropertyChange notifications, so it doesn't get re-evaluated…