• Silverlight5中横向显示ListBox

    时间:2023-12-22 11:35:55

    备忘<ListBox x:Name="Cpbrow" HorizontalAlignment="Left" Height="153" Margin="0,576,0,0" VerticalAlignment="Top" Width="790" Grid.Column="1" Selection...

  • silverlight visifire控件图表制作——silverlight 后台方法打印

    时间:2023-12-20 20:50:12

    一、后台方法1、添加引用:using System.Windows.Printing;2、全局变量://定义图片和文本打印变量  PrintDocument printImage;3、构造方法体里: //图片打印对象              printImage = new PrintDocume...

  • SilverLight页面跳转(转载)

    时间:2023-12-18 13:16:02

    // Silverlight页面的跳转 // (Application.Current.RootVisualasIContent).Content=newDragControl();//Silverlight页面的跳转//(Application.Current.RootVisual as ICon...

  • Silverlight 调用 aspx 相关文件

    时间:2023-12-16 17:35:18

    private void Button_Click_1(object sender, RoutedEventArgs e) { WebClient wb = new WebClient(); wb.DownloadString...

  • 一步一步学Silverlight 2系列(23):Silverlight与HTML混合之无窗口模式

    时间:2023-12-13 19:30:12

    概述Silverlight 2 Beta 1版本发布了,无论从Runtime还是Tools都给我们带来了很多的惊喜,如支持框架语言Visual Basic, Visual C#, IronRuby, Ironpython,对JSON、Web Service、WCF以及Sockets的支持等一系列新的...

  • WPF,Silverlight与XAML读书笔记(3) - 标记扩展

    时间:2023-12-12 12:32:44

    hystar的.Net世界博客园首页新闻新随笔联系管理订阅随笔- 103  文章- 0  评论- 107 WPF,Silverlight与XAML读书笔记(3) - 标记扩展说明:本系列基本上是《WPF揭秘》的读书笔记。在结构安排与文章内容上参照《WPF揭秘》的编排,对内容进行了总结并加入一些个人理...

  • Silverlight visifire Chart图表下载到PPT文件中

    时间:2023-12-11 21:39:08

    一、Silverlight xaml.cs文件1、 //下载图表        private void btnDown_Click(object sender, RoutedEventArgs e)        {            DBServiceClient svc = new DBS...

  • Silverlight调用本机exe程序

    时间:2023-12-11 09:56:06

    要点:1. Silverlight必须启用OOB模式,以及 Require elevated trust when running in-browser.参考下图设置注:OOB模式,并不意味着必须脱离浏览器运行,仍然可以嵌入到网面中运行2. 必须添加Microsoft.CSharp.dll 引用,默...

  • Silverlight的DataGrid合并单元格

    时间:2023-12-06 08:20:48

    现在也不知道还有没有同学做Silverlight开发了,我是一个Silverlight菜鸟,遇到问题也很难百度查到。就简单的记录一下这两天遇到的问题,并做了一个简单的小Demo,希望能够帮助到其他同学,并为自己翻看。DataGrid合并单元格,实现结果如下:Silverlight后台代码如下: //...

  • Silverlight中将WriteableBitmap互转byte数组

    时间:2023-12-04 20:22:57

    //WriteableBitmap to ARGB byte arraypublic static byte[] ToByteArray(this WriteableBitmap bmp){   int[] p = bmp.Pixels;   int len = p.Length * ;   byt...

  • SILVERLIGHT 应急卫生模拟演练项目之childwindow

    时间:2023-12-02 12:56:53

    项目中经常要用到childwindow 默认SL提供的界面很不好看 也很难适应系统里的要求单调的界面木关系 可以我们可以通过BLEND自定义成我们想要的首先新建立一个SILVERLIGHT 子窗口  然后右键在BLEND中编辑 在BLEND打开的时候 会提示是否保存在BLEND中打开后 在左下脚的面...

  • [转]silverlight Datagrid 行上增加ToolTip

    时间:2023-12-02 12:19:58

    有两种办法:1. 直接在后台处理在数据绑定后 ,注册LoadingRow 事件this.DataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(DataGrid_LoadingRow);void DataGrid_Loa...

  • IsolatedStorageException for Silverlight Application

    时间:2023-12-01 21:13:36

    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自定义渲染特效之完美攻略(中)

    时间:2023-11-26 12:44:21

    原文:WPF/Silverlight深度解决方案:(七)HLSL自定义渲染特效之完美攻略(中)通过上一节的解说,大家是否已经对HLSL有了较深刻的认识和理解,HLSL的渲染不仅仅局限于静态处理,通过时时更新HLSL代码的各全局变量值同样可以实现动画形式的渲染,非常Cool对吧~。那么本节我将向大家介...

  • WPF/Silverlight深度解决方案:(六)HLSL自定义渲染特效之完美攻略(上)

    时间:2023-11-26 12:22:40

    原文:WPF/Silverlight深度解决方案:(六)HLSL自定义渲染特效之完美攻略(上)Shader Effect种位图特效及2种渲染特效,而Silverlight中仅有这2种渲染特效: BlurEffect(模糊渲染)和 DropShadowEffect(投影渲染)。由于目前WPF/Silv...

  • silverlight处理gif格式图片

    时间:2023-11-22 07:47:32

    1.在工具箱中添加dll文件2.工具栏中将显示此控件,填写xaml文件 <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....

  • silverlight MouseLeftButtonDown事件总是无法触发

    时间:2023-11-21 15:43:52

    参考解决办法:http://www.cnblogs.com/tianguook/archive/2011/05/13/2045299.html在构造函数中首先添加一个事件: public BtnLists() { InitializeComponent(); ...

  • Silverlight中使用MVVM:DataGrid中触发Button的Click事件

    时间:2023-11-19 13:18:53

    方法1、使用RelativeSource向上查找DataContext中的命令,但是需要注意的是命令绑定需要写全 类似: DataContext.ReLoadCommand<Button Grid.Column="1" Command="{Binding DataContext.ReLoadC...

  • Silverlight Visifire控件应用去除图标的水印

    时间:2023-11-15 10:56:13

    首先,新建一个类,继承自Chart,重写LoadWatermark方法.再创建图表实例的时候就不能new Chart实例了,直接使用MyCharts.使用去除水印之前的图片:使用去除水印之后的图片:...

  • [转]ArcGIS for Silverlight:关于尝试连接到REST端点时发生安全异常的解决方案

    时间:2023-11-14 13:56:47

    Silverlight跨域策略:要从远程服务器访问数据,远程服务器需要在 web 服务器的根目录下放置一个 clientaccesspolicy.xml 文件(例如 c:\inetpub\wwwroot)。ArcGIS for Silverlight 以 Microsoft Silverlight ...