摘要: 1、msdn下载安装blend42、如我要改label字体,在其属性选中一种字体,构选嵌入,blend自动打包字体,simsum为宋体自动生成代码为:<sdk:Label HorizontalAlignment="Center" Content="" FontSize="12" FontFamily="/XXX;component/Fonts/Fonts.zip#SimSun"/>XXX为项目名 阅读全文
posted @ 2013-01-31 11:12 royin 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 【转】http://bbs.csdn.net/topics/390127470网站如果应用了Silverlight技术,直接部署到IIS中是无法正常运行的, 分析: 因为Silverlight应用所对应的三种MIME类型没有在IIS中注册,所以Silverlight相关的文件无法下载到客户端,而Silverlight又是客户端应用,这样网站运行不正常。 解决: Silverlight的发布涉及三种类型的文件:.xap,.xaml,.xbap,这些后缀名对于IIS6和IIS7来说都是新的,他们对应的MIME类型没有默认被添加到IIS中,所以需要手动进行注册,注册的内容为: .xap ... 阅读全文
posted @ 2013-01-31 11:05 royin 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 写WebMethod方法再调用View Code #region 删除文件(图片) [WebMethod] public string FileDelete(string fileName) { try { File.Delete(System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath + "/ClientBin/" + fileName); return "ok"; ... 阅读全文
posted @ 2013-01-29 14:16 royin 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 先写个cs文件View Code using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using System.IO;using Syste 阅读全文
posted @ 2013-01-28 17:27 royin 阅读(383) 评论(0) 推荐(0) 编辑
摘要: /*网上找的例子当双击不为同一行也会执行双击事件。综合了一下,先用这个用着,因为MenuDataGrid_LoadingRow里还有其他自动编号,统计的代码,故MenuDataGrid_LoadingRow会执行多次缺点 e.Row.MouseLeftButtonUp -= Row_MouseLeftButtonUp; e.Row.MouseLeftButtonUp += Row_MouseLeftButtonUp; 会执行多次*/ private bool m_bFirstTime = true; void MenuDataGrid_LoadingRow(... 阅读全文
posted @ 2013-01-28 15:39 royin 阅读(496) 评论(0) 推荐(1) 编辑