摘要: 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 <--青青子衿--> 阅读(2769) 评论(0) 推荐(0) 编辑
// /**/ // 在页脚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);