Silverlight5中横向显示ListBox
备忘<ListBox x:Name="Cpbrow" HorizontalAlignment="Left" Height="153" Margin="0,576,0,0" VerticalAlignment="Top" Width="790" Grid.Column="1" Selection...
silverlight visifire控件图表制作——silverlight 后台方法打印
一、后台方法1、添加引用:using System.Windows.Printing;2、全局变量://定义图片和文本打印变量 PrintDocument printImage;3、构造方法体里: //图片打印对象 printImage = new PrintDocume...
SilverLight页面跳转(转载)
// Silverlight页面的跳转 // (Application.Current.RootVisualasIContent).Content=newDragControl();//Silverlight页面的跳转//(Application.Current.RootVisual as ICon...
Silverlight 调用 aspx 相关文件
private void Button_Click_1(object sender, RoutedEventArgs e) { WebClient wb = new WebClient(); wb.DownloadString...
一步一步学Silverlight 2系列(23):Silverlight与HTML混合之无窗口模式
概述Silverlight 2 Beta 1版本发布了,无论从Runtime还是Tools都给我们带来了很多的惊喜,如支持框架语言Visual Basic, Visual C#, IronRuby, Ironpython,对JSON、Web Service、WCF以及Sockets的支持等一系列新的...
WPF,Silverlight与XAML读书笔记(3) - 标记扩展
hystar的.Net世界博客园首页新闻新随笔联系管理订阅随笔- 103 文章- 0 评论- 107 WPF,Silverlight与XAML读书笔记(3) - 标记扩展说明:本系列基本上是《WPF揭秘》的读书笔记。在结构安排与文章内容上参照《WPF揭秘》的编排,对内容进行了总结并加入一些个人理...
Silverlight visifire Chart图表下载到PPT文件中
一、Silverlight xaml.cs文件1、 //下载图表 private void btnDown_Click(object sender, RoutedEventArgs e) { DBServiceClient svc = new DBS...
Silverlight调用本机exe程序
要点:1. Silverlight必须启用OOB模式,以及 Require elevated trust when running in-browser.参考下图设置注:OOB模式,并不意味着必须脱离浏览器运行,仍然可以嵌入到网面中运行2. 必须添加Microsoft.CSharp.dll 引用,默...
Silverlight的DataGrid合并单元格
现在也不知道还有没有同学做Silverlight开发了,我是一个Silverlight菜鸟,遇到问题也很难百度查到。就简单的记录一下这两天遇到的问题,并做了一个简单的小Demo,希望能够帮助到其他同学,并为自己翻看。DataGrid合并单元格,实现结果如下:Silverlight后台代码如下: //...
Silverlight中将WriteableBitmap互转byte数组
//WriteableBitmap to ARGB byte arraypublic static byte[] ToByteArray(this WriteableBitmap bmp){ int[] p = bmp.Pixels; int len = p.Length * ; byt...
SILVERLIGHT 应急卫生模拟演练项目之childwindow
项目中经常要用到childwindow 默认SL提供的界面很不好看 也很难适应系统里的要求单调的界面木关系 可以我们可以通过BLEND自定义成我们想要的首先新建立一个SILVERLIGHT 子窗口 然后右键在BLEND中编辑 在BLEND打开的时候 会提示是否保存在BLEND中打开后 在左下脚的面...
[转]silverlight Datagrid 行上增加ToolTip
有两种办法:1. 直接在后台处理在数据绑定后 ,注册LoadingRow 事件this.DataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(DataGrid_LoadingRow);void DataGrid_Loa...
IsolatedStorageException for Silverlight Application
if you are using the IsolatedStorage for application configuration storage, and when you get the IsolatedStorageException on the client, pls ensure th...
WPF/Silverlight深度解决方案:(七)HLSL自定义渲染特效之完美攻略(中)
原文:WPF/Silverlight深度解决方案:(七)HLSL自定义渲染特效之完美攻略(中)通过上一节的解说,大家是否已经对HLSL有了较深刻的认识和理解,HLSL的渲染不仅仅局限于静态处理,通过时时更新HLSL代码的各全局变量值同样可以实现动画形式的渲染,非常Cool对吧~。那么本节我将向大家介...
WPF/Silverlight深度解决方案:(六)HLSL自定义渲染特效之完美攻略(上)
原文:WPF/Silverlight深度解决方案:(六)HLSL自定义渲染特效之完美攻略(上)Shader Effect种位图特效及2种渲染特效,而Silverlight中仅有这2种渲染特效: BlurEffect(模糊渲染)和 DropShadowEffect(投影渲染)。由于目前WPF/Silv...
silverlight处理gif格式图片
1.在工具箱中添加dll文件2.工具栏中将显示此控件,填写xaml文件 <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....
silverlight MouseLeftButtonDown事件总是无法触发
参考解决办法:http://www.cnblogs.com/tianguook/archive/2011/05/13/2045299.html在构造函数中首先添加一个事件: public BtnLists() { InitializeComponent(); ...
Silverlight中使用MVVM:DataGrid中触发Button的Click事件
方法1、使用RelativeSource向上查找DataContext中的命令,但是需要注意的是命令绑定需要写全 类似: DataContext.ReLoadCommand<Button Grid.Column="1" Command="{Binding DataContext.ReLoadC...
Silverlight Visifire控件应用去除图标的水印
首先,新建一个类,继承自Chart,重写LoadWatermark方法.再创建图表实例的时候就不能new Chart实例了,直接使用MyCharts.使用去除水印之前的图片:使用去除水印之后的图片:...
[转]ArcGIS for Silverlight:关于尝试连接到REST端点时发生安全异常的解决方案
Silverlight跨域策略:要从远程服务器访问数据,远程服务器需要在 web 服务器的根目录下放置一个 clientaccesspolicy.xml 文件(例如 c:\inetpub\wwwroot)。ArcGIS for Silverlight 以 Microsoft Silverlight ...