• Tag: 这里是我的标签集合!

Visual Studio 2008 Beta2初体验

07月 29th, 2007

下午安装了Windows Server2008 June CTP和VS2008 Beta2,在Server2008上VS的运行速度还可以,而且运行几次后启动速度会变得非常快,可能得益于系统的内置应用程序优化吧。
VS2008

安装速度比Beta1版本有了较大提高(P.S:而且安装.NET Framework3.5过程中不用重启了,可能与我没有安Windows SDK有关。当时在Vista上安装Beta1时第一次竟然出现Error,导致我重装Vista-_-!!)。UI配色更喜欢了(偶喜欢那种蓝色 ^^)。在新建工程时可以选择Framework的版本,这在以前的版本中提到过。明显的变化是XAML设计器中增加了缩放工具,在Design区下方的状态栏中增加了XAML元素的选取,比以前更方便了,并且XAML的智能感知功能更加强大。其他方面由于我没有涉及,新增或改变我无法说起,但对于新技术的支持应该是肯定的~希望正式版早日出来~

Visual Studio 2008 Beta 2 Released

07月 24th, 2007

Visual Studio 2008 Beta 2 was released to the web for download today. The releases are available both as regular installs and as VPC images. If you choose the regular installation, you should run this script to "ensure that the installation of .NET Framework 3.5 Beta 2 will not affect the development of ASP.NET AJAX 1.0 applications."

VS2008hero_2

This version is a 全功能 version. It includes C#3.0, VB 9, LINQ and so on, also .NET Framework 3.5 has more new features:

  1. Support for Addins
  2. Xbaps now run in FoerFox
  3. Cookies can be shared between XBAP's and Web Apps
  4. Better support for binding to BindingList coll and LINQ
  5. new UIElement3D, Contai
  6. nerUIElement3D, ModelUIElement3D classes which make 3D stuff easy
  7. Place 2D elements on 3D using Viewport2DVisual3D
  8. RichTextBox has embedded elements enabled (IsDocumentEnabled property)
  9. IME support has improved. Filtering text in IME is now a well suported scenario

watermark.bmp

WPF Window Style

07月 18th, 2007

在WPF中,Windows窗体的风格(Style)有如下四种:

None.
SingleBorderWindow (default).
ThreeDBorderWindow.
ToolWindow.

1.bmp

但有时我们却想创建非矩形框的Windows,例如程序界面无边框,背景透明,可在xaml文档中的Windows Element下添加如下代码可实现窗体背景的透明化。

<window windowstyle="None" allowstransparency="True" background="Transparent"> </window>

lcd

P.S:还记得4月去小易那里看到的他们做的IM软件的登录窗口,帅!

小菜编程成长记系列

07月 17th, 2007

去年在博客园上发现一系列C#面向对象的文章(包括面向对象、设计模式),写的深入浅出,现把链接转载,与大家分享~

下载:戏说面向对象程序设计C#版

以下是博客文章目录链接:

代序 四大发明之活字印刷——面向对象思想的胜利

第一章 面试受挫——代码无错就是好?

第二章 代码规范、重构

第三章 复制VS复用

第四章 业务的封装

第五章 体会简单工厂模式的美妙

第六章 工厂不好用了?

第七章 用“策略模式”是一种好策略

第八章 反射——程序员的快乐!

第九章 会修电脑不会修收音机?——聊设计模式原则

第十章 三层架构,分层开发

第十一章 无熟人难办事?——聊设计模式迪米特法则

第十二章 有了门面,程序员的程序会更加体面

第十三章 设计模式不能戏说!设计模式怎就不能戏说?

窗体的渐变关闭

06月 21st, 2007

WinForms的C#实现,还没有认真去看WPF,不知在WPF中怎样实现。
[coolcode]double countOpacity;
for (countOpacity=this.Opacity; countOpacity >= 0; countOpacity = countOpacity - 0.01)
{
this.Opacity = countOpacity;
Thread.Sleep(5);
}
this.Close();[/coolcode]