摘要: let's see an instance that is easily and can run well public class OpenChildWindowCommand : ICommand { /// <summary> /// 当出现影响是否应执行该命令的更改时发生。 /// </summary> public event EventHandler CanExecuteChanged; /// <summary> /// 定义用于确定此命令是否可以在其当前状态下执行的方法。 ... 阅读全文
posted @ 2013-05-24 16:28 aking96 阅读(178) 评论(0) 推荐(0) 编辑
摘要: http://www.kunal-chowdhury.com/2011/04/how-to-create-custom-control-in.html 阅读全文
posted @ 2013-05-23 10:35 aking96 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 创建3维chart图http://dynamicdatadisplay.codeplex.com/ 阅读全文
posted @ 2013-05-23 10:07 aking96 阅读(823) 评论(0) 推荐(0) 编辑
摘要: 前段時間,一直因為silverlight生成縮略圖而飽受困擾。雖然聽說過WriteableBitmap這個類,能生成縮略圖。也曾百度上面粗略看過,一直沒找到合適的生成縮略圖的辦法。今天,再次試過,終于成功。下面貼出代碼,實際的向大家說明一下,縮略圖是如何生成的。?/// 生成縮略圖/// </summary>/// <param name="bitmap">要轉換的位圖</param>/// <returns>返回WriteableBitmap</returns>public WriteableBitmap Ren 阅读全文
posted @ 2013-05-14 10:09 aking96 阅读(933) 评论(0) 推荐(0) 编辑
摘要: mainpage.xaml1 <Grid x:Name="LayoutRoot" Background="White">2 <StackPanel Orientation="Vertical" >3 <Button Content="Export to Excel" Height="23" HorizontalAlignment="Left" x:Name="button1" VerticalAlignment="T 阅读全文
posted @ 2013-05-14 09:57 aking96 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.TreeViewSample.xamlView Code <UserControl xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="Silverlight.Common.View.TreeViewSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sche 阅读全文
posted @ 2013-05-13 10:56 aking96 阅读(272) 评论(0) 推荐(0) 编辑
摘要: ControlTemlpate,其指定了控件的可视结构和可视行为,可以在不更改控件现有的功能情况下更改外观.主要有三种方式应用1. 内联定义: <ToolTip> <ToolTip.Template> <ControlTemplate TargetType="ToolTip"> ... </ControlTemplate> </ToolTip.Template> </ToolTip> 2. 资源引用: <UserControl.Resources> <Con... 阅读全文
posted @ 2013-05-09 14:17 aking96 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在绑定数据中 有时候我们需要转换相关数据类型 silverlight提供了一个System.Windows.Data.IValueConverter接口它提供两个方法 Convert和ConvertBack 前者是资源到目标元素时转换 后者是目标到资源时转换先创建一个类型 public class DataTimeConvert : System.Windows.Data.IValueConverter { // 参数: // value: // 正传递到源的目标数据。 // // targetType... 阅读全文
posted @ 2013-05-09 13:45 aking96 阅读(232) 评论(0) 推荐(0) 编辑
摘要: SilverLigth学习笔记--控制 Silverlight控件样式1、内联方式--即直接在控件内部利用其属性进行设置<UserControlx:Class="RemoveTextBoxBorder.Page"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Width="400"Height="300" 阅读全文
posted @ 2013-05-06 22:17 aking96 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 独立存储 独立存储机制是从Silverlight中提取出来的技术,最初的目的是为Silverlight应用程序提供一个客户端安全的存储,在代码与保存的数据之间定义了标准化的关联机制,它是一个与Cookie机制类似的信任机制,可以为数据提供很好的隔离性和安全性。而实际上,在Silverlight中,所有的I/O操作的处理都被视为独立存储,不使用操作系统的文件系统。 独立存储的API提供了一个虚拟的文件操作系统(IsolatedStorageFile),提供对存储的程序和应用程序文件的基本管理,每一个IsolatedStorageFile的实例表示位于文件系统中的一个单独存储区。API还提供了数. 阅读全文
posted @ 2013-05-03 16:04 aking96 阅读(213) 评论(0) 推荐(0) 编辑