MakubeX

导航

2012年11月29日 #

WPF MatrixTransform 的平滑动画代码

摘要: 注:此代码摘自:《Smooth animation using MatrixTransform?》 由于MatrixAnimationUsingKeyFrames和DiscreteMatrixKeyFrame动画帧不会进行插值计算,因些,使用此方式只能产生生硬的帧切换效果。下面代码是通过自定义的LinearMatrixAnimation类,来达到平滑切换的效果。using System.Windows;using System.Windows.Media;using System.Windows.Media.Animation;namespace MapControl{ public ... 阅读全文

posted @ 2012-11-29 01:45 Makubex 阅读(522) 评论(0) 推荐(0) 编辑

2012年3月26日 #

Windows Phone 序列化和压缩

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Serialization;using System.IO;namespace A_提料{ public class XMLSerializerHelper { public static void Serialize(Stream streamObject, object objForSerialization) { if (objFo... 阅读全文

posted @ 2012-03-26 13:19 Makubex 阅读(471) 评论(0) 推荐(0) 编辑

2012年3月14日 #

.net 发送邮件

摘要: SmtpClient smtp = new SmtpClient(); //实例化一个SmtpClient smtp.DeliveryMethod = SmtpDeliveryMethod.Network; //将smtp的出站方式设为 Network smtp.EnableSsl = false;//smtp服务器是否启用SSL加密 smtp.Host = "smtp.163.com"; //指定 smtp 服务器地址 smtp.Port = 25; //指定 smtp 服务... 阅读全文

posted @ 2012-03-14 15:49 Makubex 阅读(202) 评论(0) 推荐(0) 编辑

2012年3月13日 #

系统多个帐号设置默认登陆

摘要: 在开始——运行中输入control userpasswords2,在弹出的对话框中,将“要使用本机,用户必需输入用户名和密码”前的钩去掉,点应用,在出现的对话框后,在最上面的“用户名”一栏中输入你帐户的用户名Administrator(下面的“密码”中,如果有密码的要输入密码),一路确定后退出。 重启后就是直接登录到Administrator帐户了。 阅读全文

posted @ 2012-03-13 15:45 Makubex 阅读(265) 评论(0) 推荐(0) 编辑

2012年2月22日 #

WPF Webbroswer控件扩展方法屏蔽js错误.

摘要: public static class WebBrowserExtensions { public static void SuppressScriptErrors(this WebBrowser webBrowser, bool hide) { FieldInfo fiComWebBrowser = typeof(WebBrowser).GetField("_axIWebBrowser2", BindingFlags.Instance | BindingFlags.NonPublic); if (fiComWebB... 阅读全文

posted @ 2012-02-22 13:30 Makubex 阅读(771) 评论(3) 推荐(0) 编辑

2012年2月18日 #

Silverlight,WP7读取rss...

摘要: 需要用到一个据说是silverlight3的 dll文件.叫 System.ServiceModel.Syndication.dll下面是代码... private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { #region var backgroundBrush = this.Resources["PhoneBackgroundBrush"] as SolidColorBrush; if (backgroundBrush... 阅读全文

posted @ 2012-02-18 10:28 Makubex 阅读(272) 评论(0) 推荐(0) 编辑

2012年2月17日 #

WPF Path的Data用法

摘要: M表示 移动.. 面跟 x,y 坐标 表示移动到这个位置 准备开始画线...H 表示 平移到 绝对坐标的位置 ... 小写的h 表示 从当前点移动到 坐标位置 后面跟 xV 同上 垂直的..L line 表示 x,y 坐标位置.... 阅读全文

posted @ 2012-02-17 10:30 Makubex 阅读(1044) 评论(0) 推荐(0) 编辑

2012年2月4日 #

.net Sqlserver2008远程报表部署及访问

摘要: http://ServerIP/Reports先打开这个地址 ServerIP是服务器的ip地址 点击属性 添加角色权限这样就可以 在本地把报表部署到远程服务器然后就是 本地读取远程报表的问题.. sqlserver2008 不支持匿名访问 所以访问报表地址 http://ServerIP/ReportServer的时候 需要添加用户名密码验证..代码如下 NetworkCredential nc = new NetworkCredential("用户名", "密码"); reportViewer1.ServerReport.ReportServerCr 阅读全文

posted @ 2012-02-04 14:15 Makubex 阅读(419) 评论(0) 推荐(0) 编辑

2012年2月1日 #

WPF的BulletDecorator 对齐控件

摘要: <Window x:Class="WPFBulletDecorator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Background="Transparent" WindowStyle 阅读全文

posted @ 2012-02-01 00:27 Makubex 阅读(1058) 评论(0) 推荐(0) 编辑

2012年1月29日 #

WPF _ PathListBox

摘要: <Grid x:Name="LayoutRoot" Background="White"> <Path x:Name="path" Data="M437.5,210 C437.5,324.59909 340.12195,417.5 220,417.5 C99.878067,417.5 2.5,324.59909 2.5,210 C2.5,95.400917 99.878067,2.5 220,2.5 C340.12195,2.5 437.5,95.400917 437.5,210 z" Margi 阅读全文

posted @ 2012-01-29 16:58 Makubex 阅读(1193) 评论(0) 推荐(0) 编辑