2011年11月2日

3D 界面切换

摘要: 今天由于项目需要,使用了3D界面的切换,看了很多例子,把图片的3D切换改成了,界面的切换.CS内容:using System;using System.Collections.Generic;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Med 阅读全文

posted @ 2011-11-02 17:29 恒波 阅读(2148) 评论(0) 推荐(0) 编辑

C# 4.0 新增特性

摘要: 之前的文章中,我们曾介绍过C#的历史及C#4.0新增特性,包括:dynamic、 命名和可选参数、动态导入以及协变和逆变等。今天我们结合代码实例来具体看一下C#4.0中的四个比较重要的特性。 1.dynamic ExpandoObject 熟悉js的朋友都知道js可以这么写 :var t=newObject(); t.Abc=‘something’; t.Value=243; 现在这个js动态语言的特性,我们也可以在c#中使用了,前提是将一个变量声明为ExpandoObject类型。如下例: staticvoidMain(string[] args) { dynamic t=newEx... 阅读全文

posted @ 2011-11-02 09:48 恒波 阅读(328) 评论(0) 推荐(0) 编辑

WPF 按钮样式

摘要: 项目中用到的WPF 按钮样式,,, <!--定义按钮样式--> <Style TargetType="Button"> <Setter Property="Foreground" Value="Black"/> <!--修改模板属性--> <Setter Property="Template"> <Setter.Value> <!--控件模板--> <ControlTemplate TargetType="Butto 阅读全文

posted @ 2011-11-02 09:24 恒波 阅读(16125) 评论(0) 推荐(2) 编辑

透明按钮 控件

摘要: 透明按钮 控件...using System;using System.ComponentModel;using System.Drawing;using System.Drawing.Drawing2D;using System.Windows.Forms;namespace GlassButton{ #region//控件状态 ///<summary> /// 控件状态 ///</summary> public enum State { ///<summary> /// 无 ///</summary> ... 阅读全文

posted @ 2011-11-02 09:16 恒波 阅读(800) 评论(0) 推荐(0) 编辑

导航