silverlight browse information
摘要:public class Browser { /// /// During static instantiation, only the Netscape flag is checked /// /// /// static Browser() { _isNavigator = HtmlPage.BrowserInformation.Name.Contains("Netscape"); } /// ...
阅读全文
posted @
2013-06-26 13:14
aking96
阅读(200)
推荐(0)
silverlight 加密解密
摘要:因silverlight不支持DES(X509)加密,服务端与WPF本来是用X509加解密的, 因为要兼容SL,所以改用AES来完成,但是不幸的是在silverlight中虽然支持AES却不支持RijndaelManaged类, 只能使用AesManaged类来实现了,具体实现代码如下:/// <summary> /// 使用AES加密字符串 /// </summary> /// <param name="encryptString">待加密字符串</param> /// <param name="encryp
阅读全文
posted @
2013-05-30 15:35
aking96
阅读(1370)
推荐(0)
ICommand in Silverlight
摘要: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
阅读(187)
推荐(0)
创建Silverlight自定义用户控件
摘要:http://www.kunal-chowdhury.com/2011/04/how-to-create-custom-control-in.html
阅读全文
posted @
2013-05-23 10:35
aking96
阅读(141)
推荐(0)
Dynamic Data Display
摘要:创建3维chart图http://dynamicdatadisplay.codeplex.com/
阅读全文
posted @
2013-05-23 10:07
aking96
阅读(846)
推荐(0)
Silverlight缩略图生成(使用WriteableBitmap类)(转)
摘要:前段時間,一直因為silverlight生成縮略圖而飽受困擾。雖然聽說過WriteableBitmap這個類,能生成縮略圖。也曾百度上面粗略看過,一直沒找到合適的生成縮略圖的辦法。今天,再次試過,終于成功。下面貼出代碼,實際的向大家說明一下,縮略圖是如何生成的。?/// 生成縮略圖/// </summary>/// <param name="bitmap">要轉換的位圖</param>/// <returns>返回WriteableBitmap</returns>public WriteableBitmap Ren
阅读全文
posted @
2013-05-14 10:09
aking96
阅读(945)
推荐(0)
silverlight 将chart图倒入到excel
摘要: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
阅读(309)
推荐(0)
silverlight 中treeview初探
摘要: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
阅读(281)
推荐(0)
Silverlight中的ControlTemplate
摘要:ControlTemlpate,其指定了控件的可视结构和可视行为,可以在不更改控件现有的功能情况下更改外观.主要有三种方式应用1. 内联定义: <ToolTip> <ToolTip.Template> <ControlTemplate TargetType="ToolTip"> ... </ControlTemplate> </ToolTip.Template> </ToolTip> 2. 资源引用: <UserControl.Resources> <Con...
阅读全文
posted @
2013-05-09 14:17
aking96
阅读(145)
推荐(0)
silverlight 使用IValueConverter 转换
摘要:在绑定数据中 有时候我们需要转换相关数据类型 silverlight提供了一个System.Windows.Data.IValueConverter接口它提供两个方法 Convert和ConvertBack 前者是资源到目标元素时转换 后者是目标到资源时转换先创建一个类型 public class DataTimeConvert : System.Windows.Data.IValueConverter { // 参数: // value: // 正传递到源的目标数据。 // // targetType...
阅读全文
posted @
2013-05-09 13:45
aking96
阅读(242)
推荐(0)
SilverLigth学习笔记--控制 Silverlight控件样式(转)
摘要: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
阅读(149)
推荐(0)