上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 1.错误报警模板 阅读全文
posted @ 2019-05-25 09:27 <--青青子衿--> 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1.继承 2.构造 3..自定义以来属性 4.重写模板 阅读全文
posted @ 2019-05-25 09:21 <--青青子衿--> 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1.附加属性,采用依赖属性注册附件的方式:DependencyProperty.RegisterAttached,get与set要单独写,都是静态的; 附件属性绑定到原生控件上,需要改控件的样式或模板 阅读全文
posted @ 2019-05-25 09:15 <--青青子衿--> 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 在下拉框ComboBox中,有SelectedValue跟SelectedValuePath这两个属性,我总是搞混,现在写一篇文章来梳理下: 1.ItemSource:这个不用多说,数据源,是一个对象列表,在MVVM中,我们常用ObservableCollection<T>来定义ItemSource 阅读全文
posted @ 2019-05-25 09:05 <--青青子衿--> 阅读(2768) 评论(0) 推荐(0) 编辑
摘要: 用法一: 在父类容器中通过附加属性FocusManager.FocusedElement来绑定需要强制获得焦点的控件。 意思是:如果在父类容器中,设置了FocusManager.FocusedElement指向某一控件,那么每当这个界面出现时,首次出现,或者关闭后再出现,就是初始化出现时,当前界面的 阅读全文
posted @ 2019-04-22 16:01 <--青青子衿--> 阅读(3138) 评论(0) 推荐(1) 编辑
摘要: /// /// 缓存数据分页查询跳转实现方法 /// private void CachePageChange() { DispatcherHelper.RunAsync(() => { try { ... 阅读全文
posted @ 2019-04-11 20:56 <--青青子衿--> 阅读(737) 评论(0) 推荐(0) 编辑
摘要: M:移动命令 阅读全文
posted @ 2019-03-28 20:33 <--青青子衿--> 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 实例如下 阅读全文
posted @ 2019-03-28 20:21 <--青青子衿--> 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1.将PS制作好的图标到处成svg格式; 2.打开阿里巴巴矢量图标库:https://www.iconfont.cn 3.将svg文件拖入,以单色形式上传,最好放在一个项目里; 4.下载项目图标库包; 5.WPF中 iconfont.ttf这个文件一定要以Resource形式存在,另外上传demo. 阅读全文
posted @ 2019-03-28 20:16 <--青青子衿--> 阅读(363) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取配置文件 /// /// 键值 /// private string[] GetShortcutConfig(string key) { string strKey = ConfigurationManager.AppSettings[key]; ... 阅读全文
posted @ 2019-03-28 20:06 <--青青子衿--> 阅读(731) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
// /**/ // 在页脚Html代码 引入 // function btn_donateClick() { var DivPopup = document.getElementById('Div_popup'); var DivMasklayer = document.getElementById('div_masklayer'); DivMasklayer.style.display = 'block'; DivPopup.style.display = 'block'; var h = Div_popup.clientHeight; with (Div_popup.style) { marginTop = -h / 2 + 'px'; } } function MasklayerClick() { var masklayer = document.getElementById('div_masklayer'); var divImg = document.getElementById("Div_popup"); masklayer.style.display = "none"; divImg.style.display = "none"; } setTimeout( function () { document.getElementById('div_masklayer').onclick = MasklayerClick; document.getElementById('btn_donate').onclick = btn_donateClick; var a_gzw = document.getElementById("guanzhuwo"); a_gzw.href = "javascript:void(0);"; $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');"); }, 900);