muke77

博客园 首页 新随笔 联系 订阅 管理

2012年2月11日 #

摘要: 查询oracle blob中存储图片并以ashx发布View Code public class getPhoto : IHttpHandler { public void ProcessRequest(HttpContext context) { string photoid= context.Request["photoid"].ToString(); byte[] buffer = getPhotoFromDB(photoid); context.Response.OutputStre... 阅读全文
posted @ 2012-02-11 10:05 muke77 阅读(227) 评论(0) 推荐(0)

2011年7月8日 #

摘要: 要求控制前台Datagrid数据列的动画Silverlight控制前台Datagrid控件中具体每一行的每一列后台代码:通过循环访问DataGrid的数据集List<aaa>,可根据业务来控制前台动画动态显示。 Grid gd = dgTaskList.Columns[0].GetCellContent(aaa) as Grid; if (gd != null) { var res = (Storyboard)gd.Resources["myStoryboard12"]; res.Begin(); }前台代码<data:DataGrid x:Name=&q 阅读全文
posted @ 2011-07-08 16:23 muke77 阅读(500) 评论(0) 推荐(0)

摘要: Silverlight4.0 不提供SaveFileDialog的SafeFileName的写属性We've not exposed the "DefaultFileName" property on SaveFileDialog due to time constraints.Moe Elshall | Silverlight Development TeamMicrosoft Corporation等待5.0解决问题。 阅读全文
posted @ 2011-07-08 16:08 muke77 阅读(378) 评论(0) 推荐(0)

2011年7月5日 #

摘要: 1、mp3文件作为项目资源添加到Resources文件夹2、 StreamResourceInfo resourceStream =Application.GetResourceStream(new Uri ("/SilverlightApplication1;component/Resources/u.mp3", UriKind.Relative)); MediaElement me = new MediaElement(); me.SetSource(resourceStream.Stream); LayoutRoot.Children.Add(me);/Silverl 阅读全文
posted @ 2011-07-05 23:15 muke77 阅读(299) 评论(0) 推荐(0)