随笔分类 -  silverlight相关

摘要:2013-02-02 05:57 by jv9,1763阅读,3评论,收藏,编辑去年12月收到一位朋友的邮件,咨询Silverlight使用WCF服务,应用部署后一直无法访问的问题,通过几次交流,才发现在他的项目中,全部使用静态URL作为WCF服务的Endpoint地址,后来修改为动态地址后,问题解... 阅读全文
posted @ 2015-02-10 17:14 银河系上的地球 阅读(275) 评论(0) 推荐(0)
摘要:1.获取web.config配置内容:web.config default.aspxprotected string InitParams { get; set; }InitParams = string.Format("{0}={1}", "key1", "value1");InitP... 阅读全文
posted @ 2015-01-07 13:38 银河系上的地球 阅读(270) 评论(0) 推荐(0)
摘要:1.退出当前页面1 private void imgExit_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)2 {3 if (MessageBox.Show("确定要退出当前页面?", "提示... 阅读全文
posted @ 2014-12-26 14:09 银河系上的地球 阅读(401) 评论(0) 推荐(0)
摘要:确认后直接退出系统,关闭当前页面页面部分:后台代码: 1 //应用程序退出事件 2 void LinkExit_Click(object sender, RoutedEventArgs e) 3 { 4 if (MessageBox.Show... 阅读全文
posted @ 2014-12-25 09:20 银河系上的地球 阅读(346) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Net; 3 using System.Windows; 4 using System.Windows.Browser; 5 using System.Windows.Controls; 6 using System.Win... 阅读全文
posted @ 2014-12-17 15:50 银河系上的地球 阅读(167) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2014-12-17 15:45 银河系上的地球 阅读(1) 评论(0) 推荐(0)
摘要:1.xaml 1 8 9 10 11 12 13 14 15 16 17 ... 阅读全文
posted @ 2014-12-17 15:11 银河系上的地球 阅读(325) 评论(0) 推荐(0)
摘要:1 using BJSW.ZTFX.Client.Silverlight.MapBusinessService; 2 using System.ServiceModel; 3 using System.SL.Application; 4 using System.Windows; 5 6 nam... 阅读全文
posted @ 2014-12-17 14:52 银河系上的地球 阅读(247) 评论(0) 推荐(0)
摘要:1.自定义类using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using S... 阅读全文
posted @ 2014-12-17 14:41 银河系上的地球 阅读(223) 评论(0) 推荐(0)
摘要:1 public IList QueryAll(string beginTime, string endTime, string type) 2 { 3 beginTime = "2012-1-1"; endTime = "2014-10-10"; type... 阅读全文
posted @ 2014-10-22 14:27 银河系上的地球 阅读(341) 评论(0) 推荐(0)
摘要:1.引用命名空间 xmlns:Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data" xmlns:data="clr-namespace:System.Wi... 阅读全文
posted @ 2014-10-15 10:24 银河系上的地球 阅读(196) 评论(0) 推荐(0)
摘要:1.网址(如:http://localhost:8081/index.aspx?name=123)2.获取name=123的信息3.IDictionary dict = System.Windows.Browser.HtmlPage.Document.QueryString;4. textblock... 阅读全文
posted @ 2014-10-11 12:56 银河系上的地球 阅读(206) 评论(0) 推荐(0)
摘要:将调用silverlight页面的这句删除掉应该就能解决问题了1.将以上代码注释(删除)操作,虽然可以输入中文,但是silverlight嵌套html将会报错?想要解决silverlight嵌套html问题、silverlight无法输入中文问题,只能是换一种实现方法。具体操作如下1.自定义用户控件... 阅读全文
posted @ 2014-08-25 10:40 银河系上的地球 阅读(934) 评论(0) 推荐(0)
摘要:读取XPS格式文件或将doc,txt文件转化为XPS文件,效果图如下:1.XAML页面代码: ... 阅读全文
posted @ 2014-08-20 09:38 银河系上的地球 阅读(3878) 评论(0) 推荐(0)
摘要:1.如图所示:绑定树效果图2.前台Xaml代码: --> --> ... 阅读全文
posted @ 2014-08-20 09:35 银河系上的地球 阅读(449) 评论(0) 推荐(0)
摘要:1.MainPage.xaml 2.MainPage.xaml.csthis.LayoutRoot.Background = SkinColor.GetTopBrush();3.SkinColor.csstatic public class SkinColor { stat... 阅读全文
posted @ 2014-08-14 17:04 银河系上的地球 阅读(479) 评论(0) 推荐(0)
摘要:1.ExtranetLink.xml 2.读取xml文件private void getXmlDataTask_BeforeStart(object sender, EventArgs ... 阅读全文
posted @ 2014-08-11 09:32 银河系上的地球 阅读(242) 评论(0) 推荐(0)
摘要:1.在Web中添加天气服务引用地址http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl2.在Web中添加Wcf服务接口IWeatherService.cs 1 using System; 2 using System.Col... 阅读全文
posted @ 2014-08-08 16:51 银河系上的地球 阅读(469) 评论(0) 推荐(0)
摘要:1.在IIS上部署系统没有问题,在vs中链接oracle中出错(数据连接不成功,请检查该数据库是否已启动尝试加载oracle客户端时引发BadImageFormatException.如果在安装32位Oracle客户端组件的情况下以64位模式运行)解决方法如下:就改VS的调试服务器吧,改成IIS就可... 阅读全文
posted @ 2014-08-06 09:15 银河系上的地球 阅读(249) 评论(0) 推荐(0)
摘要:最近项目中一直在和PagedCollectionView这个类打交道。通过它,我们可以以分页的形式自动处理并显示集合中的片段,尤其是和Pager控件配合的时候更能彰显其威力。PagedColectionView类实现了ICollectionView接口,因此除分页外,它也同时提供了的其他一些对集合操... 阅读全文
posted @ 2014-08-04 15:43 银河系上的地球 阅读(413) 评论(0) 推荐(0)